Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005358/0.005358, allocations: 99.81 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 195.1 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002206/0.002206, allocations: 292 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9211/0.9211, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001834, allocations: 95.84 kB / 0.681 GB, free: 7.508 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3881/0.39, allocations: 86.98 MB / 0.7659 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002955/0.393, allocations: 1.947 MB / 0.7678 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.3942, allocations: 0.7129 MB / 0.7685 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.3943, allocations: 3.938 kB / 0.7685 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002166/0.3945, allocations: 83.64 kB / 0.7686 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.3947, allocations: 91.58 kB / 0.7687 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005554/0.3953, allocations: 187.6 kB / 0.7688 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003053/0.3956, allocations: 263.4 kB / 0.7691 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.3957, allocations: 77.61 kB / 0.7692 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.3959, allocations: 107.7 kB / 0.7693 GB, free: 428 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.3961, allocations: 155.5 kB / 0.7694 GB, free: 272 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.238e-05/0.3961, allocations: 23.94 kB / 0.7694 GB, free: 248 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.3963, allocations: 95.92 kB / 0.7695 GB, free: 152 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.32e-05/0.3964, allocations: 59.83 kB / 0.7696 GB, free: 92 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.3965, allocations: 103.4 kB / 0.7697 GB, free: 15.98 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.3968, allocations: 312 kB / 0.77 GB, free: 15.69 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3969, allocations: 0 / 0.77 GB, free: 15.69 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3969, allocations: 0 / 0.77 GB, free: 15.69 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.3969, allocations: 0 / 0.77 GB, free: 15.69 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007963/0.3977, allocations: 0.5933 MB / 0.7706 GB, free: 15.04 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.3977, allocations: 8.031 kB / 0.7706 GB, free: 15.03 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.738e-05/0.3978, allocations: 50.73 kB / 0.7706 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.396e-05/0.3978, allocations: 32.75 kB / 0.7707 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004642/0.3983, allocations: 307 kB / 0.7709 GB, free: 14.61 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.3983, allocations: 16.38 kB / 0.771 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.504e-05/0.3984, allocations: 12.38 kB / 0.771 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003702/0.3987, allocations: 227.1 kB / 0.7712 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.3988, allocations: 0 / 0.7712 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.3988, allocations: 4 kB / 0.7712 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.3988, allocations: 8 kB / 0.7712 GB, free: 14.32 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002506/0.3991, allocations: 136.3 kB / 0.7713 GB, free: 14.19 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007776/0.3998, allocations: 0.677 MB / 0.772 GB, free: 13.45 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.4002, allocations: 170.5 kB / 0.7722 GB, free: 13.28 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.4004, allocations: 101 kB / 0.7722 GB, free: 13.18 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.4004, allocations: 0 / 0.7722 GB, free: 13.18 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.4007, allocations: 169.1 kB / 0.7724 GB, free: 12.99 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.4007, allocations: 7.938 kB / 0.7724 GB, free: 12.98 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0006504/0.4014, allocations: 370.1 kB / 0.7728 GB, free: 12.61 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.4014, allocations: 132.5 kB / 0.7729 GB, free: 12.45 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.4017, allocations: 286.7 kB / 0.7732 GB, free: 12.17 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.4017, allocations: 25.7 kB / 0.7732 GB, free: 12.14 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.4018, allocations: 168.4 kB / 0.7734 GB, free: 11.97 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.869e-05/0.4019, allocations: 43.62 kB / 0.7734 GB, free: 11.93 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.06e-05/0.402, allocations: 41.7 kB / 0.7734 GB, free: 11.88 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4021, allocations: 342.7 kB / 0.7738 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.4023, allocations: 83.95 kB / 0.7738 GB, free: 11.46 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.4024, allocations: 141.8 kB / 0.774 GB, free: 11.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003281/0.4028, allocations: 240.9 kB / 0.7742 GB, free: 11.04 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4028, allocations: 0 / 0.7742 GB, free: 11.04 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004895/0.4033, allocations: 335.1 kB / 0.7745 GB, free: 10.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/0.4033, allocations: 37.69 kB / 0.7746 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.4034, allocations: 3.984 kB / 0.7746 GB, free: 10.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.4034, allocations: 4 kB / 0.7746 GB, free: 10.65 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.4035, allocations: 23.92 kB / 0.7746 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.4035, allocations: 4 kB / 0.7746 GB, free: 10.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.4036, allocations: 27.88 kB / 0.7746 GB, free: 10.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.4037, allocations: 4 kB / 0.7746 GB, free: 10.59 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001602/0.4038, allocations: 195.5 kB / 0.7748 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.973e-05/0.4039, allocations: 27.86 kB / 0.7748 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.865e-05/0.4039, allocations: 25.83 kB / 0.7749 GB, free: 10.33 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.4039, allocations: 4 kB / 0.7749 GB, free: 10.32 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.404, allocations: 0 / 0.7749 GB, free: 10.32 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.404, allocations: 0 / 0.7749 GB, free: 10.32 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000244/0.4042, allocations: 293.4 kB / 0.7752 GB, free: 9.988 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4042, allocations: 0 / 0.7752 GB, free: 9.988 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.4043, allocations: 27.92 kB / 0.7752 GB, free: 9.961 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.4043, allocations: 0 / 0.7752 GB, free: 9.961 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.4044, allocations: 8 kB / 0.7752 GB, free: 9.953 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4044, allocations: 0 / 0.7752 GB, free: 9.953 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4044, allocations: 0 / 0.7752 GB, free: 9.953 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006791/0.4051, allocations: 470.3 kB / 0.7756 GB, free: 9.469 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.682e-05/0.4051, allocations: 97 kB / 0.7757 GB, free: 9.355 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.176e-05/0.4052, allocations: 8.062 kB / 0.7757 GB, free: 9.348 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.4053, allocations: 15.98 kB / 0.7757 GB, free: 9.332 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.313e-05/0.4054, allocations: 31.89 kB / 0.7758 GB, free: 9.301 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.4054, allocations: 4 kB / 0.7758 GB, free: 9.297 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000171/0.4056, allocations: 202 kB / 0.776 GB, free: 9.105 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4056, allocations: 0 / 0.776 GB, free: 9.105 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002793/0.4059, allocations: 67.77 kB / 0.776 GB, free: 9.039 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00099/0.4069, allocations: 1.033 MB / 0.777 GB, free: 7.977 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004573/0.4073, allocations: 295.8 kB / 0.7773 GB, free: 7.676 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4074, allocations: 4 kB / 0.7773 GB, free: 7.672 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.4076, allocations: 191.3 kB / 0.7775 GB, free: 7.473 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.4079, allocations: 30.89 kB / 0.7775 GB, free: 7.445 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003361/0.4112, allocations: 2.767 MB / 0.7802 GB, free: 4.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.4115, allocations: 0.7514 MB / 0.781 GB, free: 3.793 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.628e-05/0.4116, allocations: 17.55 kB / 0.781 GB, free: 3.777 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.4117, allocations: 71.41 kB / 0.7811 GB, free: 3.707 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.4117, allocations: 0 / 0.7811 GB, free: 3.707 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.4343, allocations: 5.409 MB / 0.7863 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.453/7.887, allocations: 12.45 kB / 0.7864 GB, free: 14.42 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)