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.001829/0.001829, allocations: 107.5 kB / 16.46 MB, free: 6.453 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.002146/0.002146, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.503/1.503, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.307/3.307, allocations: 0.49 GB / 0.7916 GB, free: 33.52 MB / 0.6231 GB " [Timeout remaining time 176] 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.002032/0.002032, allocations: 68.25 kB / 1.149 GB, free: 26.31 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.391/0.3931, allocations: 176.1 MB / 1.321 GB, free: 3.344 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00377/0.3968, allocations: 1.99 MB / 1.323 GB, free: 1.34 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001564/0.3984, allocations: 0.748 MB / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001889/0.3986, allocations: 4 kB / 1.323 GB, free: 0.582 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0002883/0.3989, allocations: 79.62 kB / 1.324 GB, free: 0.5039 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.3991, allocations: 103.6 kB / 1.324 GB, free: 412 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006648/0.3997, allocations: 182.3 kB / 1.324 GB, free: 232 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004155/0.4002, allocations: 255.4 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.4003, allocations: 53.88 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/0.4006, allocations: 119.7 kB / 1.324 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000274/0.4008, allocations: 159.5 kB / 1.324 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.126e-05/0.4009, allocations: 20 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.4011, allocations: 99.86 kB / 1.324 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.678e-05/0.4012, allocations: 51.78 kB / 1.325 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.4013, allocations: 111.3 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005078/0.4018, allocations: 306.8 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.4018, allocations: 4 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.264e-06/0.4018, allocations: 0 / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.074e-05/0.4018, allocations: 0 / 1.325 GB, free: 15.07 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.001106/0.4029, allocations: 0.5855 MB / 1.326 GB, free: 14.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.403, allocations: 11.98 kB / 1.326 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.385e-05/0.4031, allocations: 50.73 kB / 1.326 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.584e-05/0.4031, allocations: 28.75 kB / 1.326 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005688/0.4037, allocations: 311 kB / 1.326 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.4037, allocations: 16.38 kB / 1.326 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.643e-05/0.4038, allocations: 12.38 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004302/0.4042, allocations: 227.1 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.4042, allocations: 0 / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.193e-05/0.4042, allocations: 4 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.4042, allocations: 7.938 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002793/0.4045, allocations: 141.2 kB / 1.326 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00099/0.4055, allocations: 0.6847 MB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.4059, allocations: 150.5 kB / 1.327 GB, free: 12.67 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.4061, allocations: 88.95 kB / 1.327 GB, free: 12.58 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.4061, allocations: 8 kB / 1.327 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003217/0.4064, allocations: 169 kB / 1.327 GB, free: 12.39 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.954e-06/0.4064, allocations: 96 / 1.327 GB, free: 12.39 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0007872/0.4072, allocations: 377.8 kB / 1.328 GB, free: 12.01 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.4073, allocations: 132.5 kB / 1.328 GB, free: 11.85 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.4076, allocations: 290.7 kB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.4077, allocations: 29.7 kB / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.4078, allocations: 152.4 kB / 1.328 GB, free: 11.36 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.958e-05/0.4079, allocations: 43.64 kB / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.922e-05/0.408, allocations: 37.7 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001704/0.4081, allocations: 342.8 kB / 1.329 GB, free: 10.93 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.4083, allocations: 87.95 kB / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.4085, allocations: 139.3 kB / 1.329 GB, free: 10.69 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003673/0.4089, allocations: 236.4 kB / 1.329 GB, free: 10.44 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4089, allocations: 4.031 kB / 1.329 GB, free: 10.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005533/0.4094, allocations: 336.8 kB / 1.329 GB, free: 10.09 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.663e-05/0.4095, allocations: 37.69 kB / 1.329 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.4095, allocations: 0 / 1.329 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.4095, allocations: 4 kB / 1.329 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.4097, allocations: 27.92 kB / 1.33 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.4097, allocations: 4 kB / 1.33 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.4098, allocations: 31.86 kB / 1.33 GB, free: 9.984 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.4098, allocations: 8 kB / 1.33 GB, free: 9.977 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.0002038/0.41, allocations: 193.5 kB / 1.33 GB, free: 9.773 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.4101, allocations: 27.86 kB / 1.33 GB, free: 9.746 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.896e-05/0.4101, allocations: 25.83 kB / 1.33 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.4101, allocations: 0 / 1.33 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4101, allocations: 4 kB / 1.33 GB, free: 9.715 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4102, allocations: 0 / 1.33 GB, free: 9.715 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003019/0.4105, allocations: 301.5 kB / 1.33 GB, free: 9.371 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4105, allocations: 0 / 1.33 GB, free: 9.371 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.4106, allocations: 15.94 kB / 1.33 GB, free: 9.355 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.4106, allocations: 0 / 1.33 GB, free: 9.355 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.4106, allocations: 11.98 kB / 1.33 GB, free: 9.344 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.4106, allocations: 96 / 1.33 GB, free: 9.344 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4106, allocations: 3.938 kB / 1.33 GB, free: 9.34 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007866/0.4114, allocations: 466.4 kB / 1.331 GB, free: 8.859 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.302e-05/0.4115, allocations: 104.9 kB / 1.331 GB, free: 8.738 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.201e-05/0.4115, allocations: 8 kB / 1.331 GB, free: 8.73 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.4116, allocations: 15.98 kB / 1.331 GB, free: 8.715 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.189e-05/0.4117, allocations: 23.95 kB / 1.331 GB, free: 8.691 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.4117, allocations: 4 kB / 1.331 GB, free: 8.688 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002089/0.4119, allocations: 205.9 kB / 1.331 GB, free: 8.488 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4119, allocations: 0 / 1.331 GB, free: 8.488 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003072/0.4122, allocations: 67.89 kB / 1.331 GB, free: 8.422 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.001237/0.4135, allocations: 1.034 MB / 1.332 GB, free: 7.355 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005478/0.414, allocations: 266.6 kB / 1.332 GB, free: 7.086 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.414, allocations: 0 / 1.332 GB, free: 7.086 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.4143, allocations: 155.3 kB / 1.332 GB, free: 6.922 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.4146, allocations: 36.42 kB / 1.332 GB, free: 6.887 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00375/0.4183, allocations: 2.755 MB / 1.335 GB, free: 4.02 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.4187, allocations: 0.7569 MB / 1.336 GB, free: 3.238 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.503e-05/0.4188, allocations: 17.55 kB / 1.336 GB, free: 3.223 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.4189, allocations: 71.41 kB / 1.336 GB, free: 3.152 MB / 1.029 GB Notification: Performance of SimCode: time 1.032e-06/0.4189, allocations: 0 / 1.336 GB, free: 3.152 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03214/0.4511, allocations: 5.385 MB / 1.341 GB, free: 13.88 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.287/8.738, allocations: 9.438 kB / 1.341 GB, free: 13.87 MB / 1.045 GB " [Timeout remaining time 291] (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: 15.644475216977298]