Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.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.0008322/0.0008322, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008415/0.0008415, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9291/0.9291, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.686/1.686, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_11_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_11_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.614e-06/1.614e-06, allocations: 0 / 0.9505 GB, free: 3.484 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.094e-05/2.255e-05, allocations: 5.234 kB / 0.9505 GB, free: 3.48 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002347/0.00237, allocations: 1.929 MB / 0.9524 GB, free: 1.535 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0009423/0.003312, allocations: 0.7049 MB / 0.9531 GB, free: 0.8242 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.003413, allocations: 7.938 kB / 0.9531 GB, free: 0.8164 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0002302/0.003643, allocations: 87.62 kB / 0.9531 GB, free: 0.7305 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 9.401e-05/0.003737, allocations: 91.56 kB / 0.9532 GB, free: 0.6406 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005314/0.004269, allocations: 186 kB / 0.9534 GB, free: 472 kB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.004496, allocations: 267.4 kB / 0.9537 GB, free: 204 kB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.004632, allocations: 42.17 kB / 0.9537 GB, free: 160 kB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.004767, allocations: 155.7 kB / 0.9539 GB, free: 4 kB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000161/0.004928, allocations: 139.7 kB / 0.954 GB, free: 15.87 MB / 0.9167 GB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.004955, allocations: 20 kB / 0.954 GB, free: 15.85 MB / 0.9167 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.005057, allocations: 83.94 kB / 0.9541 GB, free: 15.77 MB / 0.9167 GB Notification: Performance of NFScalarize.scalarize: time 6.606e-05/0.005123, allocations: 63.77 kB / 0.9541 GB, free: 15.7 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 6.245e-05/0.005185, allocations: 63.77 kB / 0.9542 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.005481, allocations: 335 kB / 0.9545 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.005483, allocations: 4 kB / 0.9545 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.412e-06/0.005485, allocations: 0 / 0.9545 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.005494, allocations: 0 / 0.9545 GB, free: 15.31 MB / 0.9167 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.0006207/0.006114, allocations: 0.5141 MB / 0.955 GB, free: 14.76 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.006154, allocations: 12.03 kB / 0.955 GB, free: 14.75 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.719e-05/0.006192, allocations: 42.75 kB / 0.9551 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.63e-05/0.006238, allocations: 28.78 kB / 0.9551 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.006619, allocations: 248.8 kB / 0.9553 GB, free: 14.4 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.006642, allocations: 16.38 kB / 0.9554 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.537e-05/0.006667, allocations: 16.36 kB / 0.9554 GB, free: 14.37 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.006963, allocations: 308.8 kB / 0.9557 GB, free: 14.02 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.006971, allocations: 192 / 0.9557 GB, free: 14.02 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.006986, allocations: 7.938 kB / 0.9557 GB, free: 14.02 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.006991, allocations: 8 kB / 0.9557 GB, free: 14.01 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.007162, allocations: 166 kB / 0.9558 GB, free: 13.84 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005731/0.007735, allocations: 0.6098 MB / 0.9564 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002274/0.007962, allocations: 184.2 kB / 0.9566 GB, free: 12.98 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/0.008209, allocations: 122.8 kB / 0.9567 GB, free: 12.86 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/0.008223, allocations: 3.938 kB / 0.9567 GB, free: 12.85 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001903/0.008413, allocations: 202.7 kB / 0.9569 GB, free: 12.63 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=15): time 1.243e-06/0.008414, allocations: 0 / 0.9569 GB, free: 12.63 MB / 0.9167 GB Notification: Performance of matching and sorting (n=15): time 0.0004539/0.008868, allocations: 434.6 kB / 0.9573 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.008919, allocations: 136.5 kB / 0.9575 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.009096, allocations: 285.8 kB / 0.9577 GB, free: 11.73 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.009113, allocations: 29.7 kB / 0.9578 GB, free: 11.7 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 8.151e-05/0.009195, allocations: 160.4 kB / 0.9579 GB, free: 11.54 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.009223, allocations: 47.58 kB / 0.958 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.954e-05/0.009273, allocations: 41.7 kB / 0.958 GB, free: 11.44 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.368e-05/0.009356, allocations: 334.8 kB / 0.9583 GB, free: 11.11 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.009472, allocations: 117.7 kB / 0.9584 GB, free: 10.98 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.009612, allocations: 220.5 kB / 0.9587 GB, free: 10.73 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.009809, allocations: 252.9 kB / 0.9589 GB, free: 10.46 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.009811, allocations: 3.938 kB / 0.9589 GB, free: 10.46 MB / 0.9167 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003132/0.01012, allocations: 380.7 kB / 0.9593 GB, free: 10.07 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.01015, allocations: 36.05 kB / 0.9593 GB, free: 10.03 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.01016, allocations: 0 / 0.9593 GB, free: 10.03 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.01017, allocations: 3.984 kB / 0.9593 GB, free: 10.03 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.331e-05/0.01024, allocations: 24.09 kB / 0.9593 GB, free: 10 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.01025, allocations: 12.02 kB / 0.9593 GB, free: 9.992 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.669e-05/0.01031, allocations: 23.88 kB / 0.9594 GB, free: 9.969 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.01032, allocations: 8 kB / 0.9594 GB, free: 9.961 MB / 0.9167 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.0001175/0.01044, allocations: 197.8 kB / 0.9596 GB, free: 9.754 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.01047, allocations: 31.84 kB / 0.9596 GB, free: 9.723 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.0105, allocations: 21.78 kB / 0.9596 GB, free: 9.699 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.0105, allocations: 0 / 0.9596 GB, free: 9.699 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.01051, allocations: 0 / 0.9596 GB, free: 9.699 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.01051, allocations: 3.984 kB / 0.9596 GB, free: 9.695 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.01067, allocations: 244.6 kB / 0.9598 GB, free: 9.414 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.01067, allocations: 0 / 0.9598 GB, free: 9.414 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.624e-05/0.01072, allocations: 15.98 kB / 0.9599 GB, free: 9.398 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.01073, allocations: 0 / 0.9599 GB, free: 9.398 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.01074, allocations: 4 kB / 0.9599 GB, free: 9.395 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.01074, allocations: 0 / 0.9599 GB, free: 9.395 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.01074, allocations: 3.938 kB / 0.9599 GB, free: 9.391 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004856/0.01123, allocations: 0.5278 MB / 0.9604 GB, free: 8.828 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 2.289e-05/0.01125, allocations: 27.91 kB / 0.9604 GB, free: 8.801 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.01128, allocations: 12 kB / 0.9604 GB, free: 8.789 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/0.01133, allocations: 11.98 kB / 0.9604 GB, free: 8.777 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.848e-05/0.01139, allocations: 27.94 kB / 0.9605 GB, free: 8.75 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.01141, allocations: 4 kB / 0.9605 GB, free: 8.746 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001197/0.01153, allocations: 205.2 kB / 0.9607 GB, free: 8.543 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.01153, allocations: 0 / 0.9607 GB, free: 8.543 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001757/0.0117, allocations: 59.88 kB / 0.9607 GB, free: 8.484 MB / 0.9167 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.0007077/0.01241, allocations: 1.103 MB / 0.9618 GB, free: 7.336 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0003177/0.01273, allocations: 330.6 kB / 0.9621 GB, free: 6.988 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01273, allocations: 0 / 0.9621 GB, free: 6.988 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.01286, allocations: 181.1 kB / 0.9623 GB, free: 6.793 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002052/0.01307, allocations: 41.09 kB / 0.9623 GB, free: 6.754 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.01547, allocations: 2.932 MB / 0.9652 GB, free: 3.68 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.91e-05/0.01556, allocations: 144.8 kB / 0.9653 GB, free: 3.523 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 6.261e-05/0.01562, allocations: 21.48 kB / 0.9653 GB, free: 3.504 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.134e-05/0.0157, allocations: 76.47 kB / 0.9654 GB, free: 3.43 MB / 0.9167 GB Notification: Performance of SimCode: time 5e-07/0.0157, allocations: 0 / 0.9654 GB, free: 3.43 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.03442, allocations: 6.235 MB / 0.9715 GB, free: 13.36 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.975/7.01, allocations: 13.25 kB / 0.9715 GB, free: 13.36 MB / 0.9323 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.076836122199893]