Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00159/0.00159, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001971/0.001971, allocations: 219.9 kB / 22.25 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.148/3.148, allocations: 0.49 GB / 0.7951 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings 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.002036/0.002036, allocations: 70.5 kB / 1.154 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3794, allocations: 176.1 MB / 1.326 GB, free: 1.504 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003487/0.3829, allocations: 1.93 MB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001367/0.3842, allocations: 0.7129 MB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.3844, allocations: 0 / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.3846, allocations: 83.62 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.3847, allocations: 91.56 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005799/0.3853, allocations: 188.8 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003325/0.3856, allocations: 259.4 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.3858, allocations: 54.16 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.386, allocations: 119.6 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002802/0.3862, allocations: 159.5 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.853e-05/0.3863, allocations: 24 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001499/0.3864, allocations: 87.94 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.556e-05/0.3865, allocations: 59.83 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.3866, allocations: 79.47 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004279/0.3871, allocations: 318.8 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3871, allocations: 3.938 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3871, allocations: 0 / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.3871, allocations: 0 / 1.33 GB, free: 13.35 MB / 1.029 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.0008875/0.388, allocations: 0.5141 MB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.388, allocations: 8.031 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.294e-05/0.3881, allocations: 46.69 kB / 1.33 GB, free: 12.73 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.608e-05/0.3881, allocations: 36.73 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.3887, allocations: 241.2 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.3887, allocations: 8.375 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.3887, allocations: 28.3 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00048/0.3892, allocations: 300.2 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3892, allocations: 0 / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.3892, allocations: 8 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.3893, allocations: 4 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002803/0.3895, allocations: 162.8 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009358/0.3905, allocations: 0.6136 MB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003917/0.3909, allocations: 184.2 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.3911, allocations: 118.7 kB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.3911, allocations: 0 / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003443/0.3914, allocations: 210.8 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.3914, allocations: 0 / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0007979/0.3922, allocations: 434.5 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.819e-05/0.3923, allocations: 136.5 kB / 1.333 GB, free: 10.06 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003417/0.3927, allocations: 289.8 kB / 1.333 GB, free: 9.77 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.3927, allocations: 29.7 kB / 1.333 GB, free: 9.734 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.3928, allocations: 152.4 kB / 1.333 GB, free: 9.578 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.425e-05/0.3929, allocations: 43.64 kB / 1.333 GB, free: 9.535 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.106e-05/0.393, allocations: 41.7 kB / 1.333 GB, free: 9.488 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3932, allocations: 342.8 kB / 1.334 GB, free: 9.145 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.3934, allocations: 113.7 kB / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002893/0.3936, allocations: 222.8 kB / 1.334 GB, free: 8.773 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.394, allocations: 236.4 kB / 1.334 GB, free: 8.52 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.394, allocations: 0 / 1.334 GB, free: 8.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006017/0.3946, allocations: 381.7 kB / 1.335 GB, free: 8.129 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.972e-05/0.3947, allocations: 41.81 kB / 1.335 GB, free: 8.082 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3947, allocations: 3.938 kB / 1.335 GB, free: 8.078 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.3947, allocations: 4 kB / 1.335 GB, free: 8.074 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.3948, allocations: 23.92 kB / 1.335 GB, free: 8.051 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.3948, allocations: 4.094 kB / 1.335 GB, free: 8.047 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001327/0.395, allocations: 31.77 kB / 1.335 GB, free: 8.016 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.395, allocations: 8 kB / 1.335 GB, free: 8.008 MB / 1.029 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.0002313/0.3952, allocations: 208.8 kB / 1.335 GB, free: 7.789 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.258e-05/0.3953, allocations: 27.86 kB / 1.335 GB, free: 7.762 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.117e-05/0.3953, allocations: 29.77 kB / 1.335 GB, free: 7.73 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3953, allocations: 4 kB / 1.335 GB, free: 7.727 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3953, allocations: 0 / 1.335 GB, free: 7.727 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3953, allocations: 4 kB / 1.335 GB, free: 7.723 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000288/0.3956, allocations: 232.6 kB / 1.335 GB, free: 7.453 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3956, allocations: 0 / 1.335 GB, free: 7.453 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.3957, allocations: 15.98 kB / 1.335 GB, free: 7.438 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3957, allocations: 0 / 1.335 GB, free: 7.438 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.3958, allocations: 8 kB / 1.335 GB, free: 7.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3958, allocations: 4 kB / 1.335 GB, free: 7.426 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3958, allocations: 0 / 1.335 GB, free: 7.426 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008309/0.3966, allocations: 0.5311 MB / 1.336 GB, free: 6.859 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.485e-05/0.3966, allocations: 23.89 kB / 1.336 GB, free: 6.836 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.578e-05/0.3967, allocations: 8 kB / 1.336 GB, free: 6.828 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.3968, allocations: 11.98 kB / 1.336 GB, free: 6.816 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/0.3969, allocations: 23.95 kB / 1.336 GB, free: 6.793 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.3969, allocations: 7.984 kB / 1.336 GB, free: 6.785 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002172/0.3971, allocations: 205.3 kB / 1.336 GB, free: 6.586 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3971, allocations: 0 / 1.336 GB, free: 6.586 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003276/0.3974, allocations: 63.83 kB / 1.336 GB, free: 6.523 MB / 1.029 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.001275/0.3987, allocations: 1.096 MB / 1.337 GB, free: 5.383 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005889/0.3993, allocations: 330.9 kB / 1.337 GB, free: 5.035 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3993, allocations: 0 / 1.337 GB, free: 5.035 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002672/0.3996, allocations: 185 kB / 1.338 GB, free: 4.836 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.3999, allocations: 32.86 kB / 1.338 GB, free: 4.805 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003737/0.4036, allocations: 2.922 MB / 1.341 GB, free: 1.742 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000156/0.4038, allocations: 140.7 kB / 1.341 GB, free: 1.59 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.489e-05/0.4039, allocations: 17.48 kB / 1.341 GB, free: 1.574 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.404, allocations: 75.41 kB / 1.341 GB, free: 1.5 MB / 1.029 GB Notification: Performance of SimCode: time 8.02e-07/0.404, allocations: 0 / 1.341 GB, free: 1.5 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03885/0.4429, allocations: 6.176 MB / 1.347 GB, free: 11.49 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.82, allocations: 3.578 kB / 1.347 GB, free: 11.49 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.52834331599297]