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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 209.5 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 256 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.003854/0.003854, allocations: 299.3 kB / 312.7 MB, free: 2.57 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.208/1.208, allocations: 180.6 MB / 0.5369 GB, free: 14.55 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003394/0.003394, allocations: 101.4 kB / 0.7395 GB, free: 28.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1827, allocations: 95.38 MB / 0.8326 GB, free: 8.383 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003508/0.1863, allocations: 1.936 MB / 0.8345 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001434/0.1877, allocations: 0.6935 MB / 0.8352 GB, free: 5.738 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.1878, allocations: 7.938 kB / 0.8352 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002411/0.1881, allocations: 87.64 kB / 0.8353 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001641/0.1882, allocations: 95.55 kB / 0.8354 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000615/0.1889, allocations: 181.3 kB / 0.8356 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003765/0.1892, allocations: 255.3 kB / 0.8358 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.1894, allocations: 46.19 kB / 0.8358 GB, free: 5.074 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001872/0.1896, allocations: 119.6 kB / 0.836 GB, free: 4.957 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.1898, allocations: 155.4 kB / 0.8361 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.541e-05/0.1899, allocations: 20 kB / 0.8361 GB, free: 4.785 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.19, allocations: 95.86 kB / 0.8362 GB, free: 4.691 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.844e-05/0.1901, allocations: 55.84 kB / 0.8363 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.1902, allocations: 79.53 kB / 0.8363 GB, free: 4.559 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004538/0.1907, allocations: 318.7 kB / 0.8366 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1907, allocations: 0 / 0.8366 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.523e-06/0.1907, allocations: 4 kB / 0.8367 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.121e-05/0.1907, allocations: 0 / 0.8367 GB, free: 4.242 MB / 0.5762 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.0009621/0.1917, allocations: 0.5141 MB / 0.8372 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.1917, allocations: 9.344 kB / 0.8372 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.439e-05/0.1918, allocations: 50.73 kB / 0.8372 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.35e-05/0.1918, allocations: 32.69 kB / 0.8372 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005275/0.1924, allocations: 245.2 kB / 0.8375 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.1924, allocations: 12.38 kB / 0.8375 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.1924, allocations: 12.38 kB / 0.8375 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004816/0.1929, allocations: 320.6 kB / 0.8378 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.1929, allocations: 0 / 0.8378 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.193, allocations: 4 kB / 0.8378 GB, free: 2.945 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.193, allocations: 8 kB / 0.8378 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002803/0.1932, allocations: 162 kB / 0.838 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008953/0.1941, allocations: 0.6098 MB / 0.8386 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003959/0.1945, allocations: 188.2 kB / 0.8387 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/0.1947, allocations: 122.5 kB / 0.8389 GB, free: 1.785 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.1947, allocations: 4 kB / 0.8389 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003169/0.1951, allocations: 202.7 kB / 0.8391 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.1951, allocations: 0 / 0.8391 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of matching and sorting (n=15): time 0.0007974/0.1959, allocations: 445 kB / 0.8395 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.672e-05/0.196, allocations: 140.5 kB / 0.8396 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/0.1963, allocations: 269.9 kB / 0.8399 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.531e-05/0.1963, allocations: 37.69 kB / 0.8399 GB, free: 0.6172 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.1964, allocations: 156.3 kB / 0.8401 GB, free: 472 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.42e-05/0.1965, allocations: 51.62 kB / 0.8401 GB, free: 420 kB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.293e-05/0.1966, allocations: 41.7 kB / 0.8402 GB, free: 372 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1967, allocations: 338.8 kB / 0.8405 GB, free: 24 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.1969, allocations: 117.7 kB / 0.8406 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.1972, allocations: 210.2 kB / 0.8408 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003634/0.1976, allocations: 246.1 kB / 0.841 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1976, allocations: 8.031 kB / 0.841 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005826/0.1981, allocations: 379.3 kB / 0.8414 GB, free: 15 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.1982, allocations: 31.42 kB / 0.8414 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1982, allocations: 4 kB / 0.8414 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.1982, allocations: 0 / 0.8414 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.1983, allocations: 27.98 kB / 0.8415 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.1983, allocations: 3.984 kB / 0.8415 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.1985, allocations: 27.97 kB / 0.8415 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.1985, allocations: 11.94 kB / 0.8415 GB, free: 14.89 MB / 0.5919 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.0002109/0.1987, allocations: 194.7 kB / 0.8417 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.547e-05/0.1987, allocations: 31.8 kB / 0.8417 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.009e-05/0.1988, allocations: 25.78 kB / 0.8417 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.1988, allocations: 96 / 0.8417 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.1988, allocations: 3.938 kB / 0.8417 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1988, allocations: 3.984 kB / 0.8417 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002779/0.1991, allocations: 240.5 kB / 0.842 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1991, allocations: 4 kB / 0.842 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.1992, allocations: 15.98 kB / 0.842 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.1992, allocations: 4 kB / 0.842 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.1992, allocations: 3.938 kB / 0.842 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1992, allocations: 4 kB / 0.842 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1992, allocations: 0 / 0.842 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008369/0.2001, allocations: 0.5329 MB / 0.8425 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.526e-05/0.2001, allocations: 15.86 kB / 0.8425 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.602e-05/0.2001, allocations: 16.06 kB / 0.8426 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.2003, allocations: 11.98 kB / 0.8426 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.246e-05/0.2003, allocations: 27.95 kB / 0.8426 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.2003, allocations: 4 kB / 0.8426 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002044/0.2005, allocations: 209.1 kB / 0.8428 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.2005, allocations: 4 kB / 0.8428 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002887/0.2008, allocations: 55.88 kB / 0.8429 GB, free: 13.41 MB / 0.5919 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.001187/0.202, allocations: 1.096 MB / 0.8439 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005255/0.2025, allocations: 326.6 kB / 0.8442 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2026, allocations: 0 / 0.8442 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002527/0.2028, allocations: 181.1 kB / 0.8444 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.2031, allocations: 36.67 kB / 0.8444 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003598/0.2067, allocations: 2.933 MB / 0.8473 GB, free: 8.629 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001415/0.2068, allocations: 140.8 kB / 0.8474 GB, free: 8.473 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.835e-05/0.2069, allocations: 21.48 kB / 0.8475 GB, free: 8.449 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.207, allocations: 75.34 kB / 0.8475 GB, free: 8.375 MB / 0.5919 GB Notification: Performance of SimCode: time 3.91e-07/0.207, allocations: 3.938 kB / 0.8475 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03594/0.243, allocations: 6.117 MB / 0.8535 GB, free: 2.426 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.28, allocations: 7.312 kB / 0.8535 GB, free: 2.422 MB / 0.5919 GB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.56360146496445] Failed to read output from testmodel.py, exit status != 0: 11.395884928759187 11.424066447 11.228456801 Calling exit ...