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.001215/0.001215, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001441/0.001441, allocations: 213.4 kB / 23.04 MB, free: 5.074 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.458/1.458, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.002461/0.002461, allocations: 287.6 kB / 313.5 MB, free: 2.801 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.252/1.252, allocations: 180.6 MB / 0.5377 GB, free: 12.97 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="cs",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.00277/0.00277, allocations: 98.55 kB / 0.7403 GB, free: 28.06 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1995, allocations: 95.39 MB / 0.8335 GB, free: 8.629 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003227/0.2027, allocations: 1.999 MB / 0.8354 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001341/0.204, allocations: 0.7557 MB / 0.8362 GB, free: 5.855 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.2041, allocations: 4 kB / 0.8362 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002223/0.2044, allocations: 87.62 kB / 0.8363 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001363/0.2045, allocations: 87.58 kB / 0.8363 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005425/0.205, allocations: 190.4 kB / 0.8365 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003187/0.2054, allocations: 259.2 kB / 0.8368 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.2055, allocations: 52 kB / 0.8368 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.2057, allocations: 115.7 kB / 0.8369 GB, free: 5.074 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.2059, allocations: 171.4 kB / 0.8371 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.557e-05/0.2059, allocations: 20 kB / 0.8371 GB, free: 4.887 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.2061, allocations: 95.92 kB / 0.8372 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.832e-05/0.2062, allocations: 55.84 kB / 0.8373 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.2063, allocations: 103.3 kB / 0.8374 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00039/0.2067, allocations: 318.7 kB / 0.8377 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.2067, allocations: 0 / 0.8377 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2067, allocations: 0 / 0.8377 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.166e-05/0.2067, allocations: 7.938 kB / 0.8377 GB, free: 4.316 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.0008491/0.2075, allocations: 0.5102 MB / 0.8382 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.2076, allocations: 13.34 kB / 0.8382 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.136e-05/0.2076, allocations: 192 / 0.8382 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.826e-05/0.2076, allocations: 50.73 kB / 0.8382 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.556e-05/0.2077, allocations: 28.75 kB / 0.8383 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004812/0.2082, allocations: 245.2 kB / 0.8385 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.2082, allocations: 12.38 kB / 0.8385 GB, free: 3.395 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.731e-05/0.2082, allocations: 20.06 kB / 0.8385 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004015/0.2086, allocations: 227.6 kB / 0.8387 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.2086, allocations: 4 kB / 0.8387 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.2087, allocations: 4 kB / 0.8388 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.2087, allocations: 4 kB / 0.8388 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002585/0.2089, allocations: 136.3 kB / 0.8389 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008353/0.2098, allocations: 0.6488 MB / 0.8395 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/0.2101, allocations: 146.5 kB / 0.8397 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.2103, allocations: 96.94 kB / 0.8398 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.2103, allocations: 4 kB / 0.8398 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.2106, allocations: 173.1 kB / 0.8399 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.2106, allocations: 0 / 0.8399 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of matching and sorting (n=15): time 0.000711/0.2113, allocations: 379 kB / 0.8403 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.516e-05/0.2114, allocations: 132.5 kB / 0.8404 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002836/0.2117, allocations: 281.9 kB / 0.8407 GB, free: 1.016 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.2117, allocations: 29.7 kB / 0.8407 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.2118, allocations: 164.3 kB / 0.8409 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.312e-05/0.2119, allocations: 39.64 kB / 0.8409 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.493e-05/0.2119, allocations: 45.64 kB / 0.8409 GB, free: 0.7266 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2121, allocations: 342.8 kB / 0.8413 GB, free: 392 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.2123, allocations: 83.95 kB / 0.8414 GB, free: 308 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.2125, allocations: 133 kB / 0.8415 GB, free: 156 kB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003592/0.2128, allocations: 237.4 kB / 0.8417 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.2128, allocations: 4.031 kB / 0.8417 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005214/0.2134, allocations: 339 kB / 0.842 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.913e-05/0.2134, allocations: 39.41 kB / 0.8421 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2134, allocations: 0 / 0.8421 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.2134, allocations: 0 / 0.8421 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.2136, allocations: 27.92 kB / 0.8421 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.2136, allocations: 0 / 0.8421 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.2137, allocations: 32.06 kB / 0.8421 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.2137, allocations: 11.88 kB / 0.8421 GB, free: 15.43 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.0001908/0.2139, allocations: 189 kB / 0.8423 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.598e-05/0.214, allocations: 31.81 kB / 0.8423 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.366e-05/0.214, allocations: 25.78 kB / 0.8424 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.214, allocations: 0 / 0.8424 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.214, allocations: 7.922 kB / 0.8424 GB, free: 15.17 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.214, allocations: 0 / 0.8424 GB, free: 15.17 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.2143, allocations: 264.4 kB / 0.8426 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2143, allocations: 4 kB / 0.8426 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.2144, allocations: 15.98 kB / 0.8427 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2144, allocations: 0 / 0.8427 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.2144, allocations: 15.92 kB / 0.8427 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.2144, allocations: 0 / 0.8427 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2144, allocations: 0 / 0.8427 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007953/0.2152, allocations: 472.9 kB / 0.8431 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.2153, allocations: 31.81 kB / 0.8431 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/0.2153, allocations: 4 kB / 0.8432 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.2154, allocations: 15.98 kB / 0.8432 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.367e-05/0.2155, allocations: 23.95 kB / 0.8432 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.2155, allocations: 8 kB / 0.8432 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002009/0.2157, allocations: 205.1 kB / 0.8434 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.2157, allocations: 0 / 0.8434 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002805/0.216, allocations: 59.98 kB / 0.8434 GB, free: 14.02 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.001161/0.2172, allocations: 1.025 MB / 0.8445 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004921/0.2177, allocations: 269.5 kB / 0.8447 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2177, allocations: 0 / 0.8447 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002279/0.2179, allocations: 155.3 kB / 0.8449 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.2182, allocations: 27.61 kB / 0.8449 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003535/0.2217, allocations: 2.766 MB / 0.8476 GB, free: 9.629 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003759/0.2221, allocations: 0.7554 MB / 0.8483 GB, free: 8.848 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.833e-05/0.2222, allocations: 17.48 kB / 0.8483 GB, free: 8.824 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.2223, allocations: 71.41 kB / 0.8484 GB, free: 8.754 MB / 0.5919 GB Notification: Performance of SimCode: time 2.7e-07/0.2223, allocations: 0 / 0.8484 GB, free: 8.754 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02785/0.2501, allocations: 5.615 MB / 0.8539 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.29, allocations: 17.09 kB / 0.8539 GB, free: 3.293 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=50 --tolerance=1e-06 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.633442367019597] Failed to read output from testmodel.py, exit status != 0: 11.471816487028264 11.502511818 11.290282911 Calling exit ...