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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002222/0.002222, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002219/0.00222, allocations: 195.1 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.456/2.456, allocations: 469.8 MB / 0.7424 GB, free: 7.461 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 69.25 kB / 0.9087 GB, free: 34.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2312, allocations: 159.2 MB / 1.064 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002872/0.2341, allocations: 1.962 MB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.2351, allocations: 0.7052 MB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.546e-05/0.2352, allocations: 4 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.2354, allocations: 83.64 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.2355, allocations: 83.64 kB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.236, allocations: 194.3 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002735/0.2362, allocations: 259.5 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.2364, allocations: 74.05 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.2365, allocations: 115.7 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.2367, allocations: 143.5 kB / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.537e-05/0.2367, allocations: 20 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.2369, allocations: 99.86 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.573e-05/0.237, allocations: 59.77 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.712e-05/0.2371, allocations: 103.3 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002966/0.2374, allocations: 303.1 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2374, allocations: 0 / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.183e-06/0.2374, allocations: 0 / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.2374, allocations: 0 / 1.068 GB, free: 10.03 MB / 0.8262 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.0007486/0.2381, allocations: 0.5819 MB / 1.069 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.2382, allocations: 12.03 kB / 1.069 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.978e-05/0.2382, allocations: 54.61 kB / 1.069 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.283e-05/0.2383, allocations: 32.56 kB / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003803/0.2387, allocations: 287 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.2387, allocations: 16.31 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/0.2387, allocations: 16.38 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.2391, allocations: 227.8 kB / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2391, allocations: 0 / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.2391, allocations: 4 kB / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.2391, allocations: 7.984 kB / 1.069 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.2394, allocations: 136.3 kB / 1.069 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007489/0.2401, allocations: 0.6884 MB / 1.07 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003278/0.2405, allocations: 162.5 kB / 1.07 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.2406, allocations: 96.95 kB / 1.07 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.2406, allocations: 4 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002618/0.2409, allocations: 177 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.2409, allocations: 0 / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.000606/0.2415, allocations: 369 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.105e-05/0.2416, allocations: 132.5 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.2419, allocations: 290.5 kB / 1.071 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.2419, allocations: 37.7 kB / 1.071 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.952e-05/0.242, allocations: 148.3 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.2421, allocations: 47.36 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/0.2421, allocations: 37.7 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2423, allocations: 342.8 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.2424, allocations: 87.95 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.2426, allocations: 126.7 kB / 1.072 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.2429, allocations: 244.9 kB / 1.072 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2429, allocations: 0 / 1.072 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004645/0.2434, allocations: 342.9 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/0.2435, allocations: 37.69 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.2435, allocations: 3.938 kB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.2435, allocations: 0 / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.2436, allocations: 31.92 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.2436, allocations: 0 / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.2437, allocations: 23.92 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.2437, allocations: 12 kB / 1.073 GB, free: 4.945 MB / 0.8262 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.0001598/0.2439, allocations: 195.4 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.2439, allocations: 23.72 kB / 1.073 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.533e-05/0.244, allocations: 29.92 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.244, allocations: 3.938 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.244, allocations: 4 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.244, allocations: 0 / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002499/0.2443, allocations: 297.3 kB / 1.073 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2443, allocations: 4 kB / 1.073 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.997e-05/0.2444, allocations: 19.98 kB / 1.073 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.2444, allocations: 4 kB / 1.073 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.2444, allocations: 0 / 1.073 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.2444, allocations: 7.984 kB / 1.073 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2444, allocations: 0 / 1.073 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006535/0.2451, allocations: 466.3 kB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.636e-05/0.2451, allocations: 104.8 kB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.922e-05/0.2452, allocations: 8 kB / 1.074 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.549e-05/0.2453, allocations: 11.98 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.551e-05/0.2454, allocations: 19.97 kB / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.2454, allocations: 7.984 kB / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001713/0.2456, allocations: 202 kB / 1.074 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2456, allocations: 0 / 1.074 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002349/0.2458, allocations: 64.03 kB / 1.074 GB, free: 3.395 MB / 0.8262 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.0009753/0.2468, allocations: 1.034 MB / 1.075 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004427/0.2472, allocations: 295.3 kB / 1.075 GB, free: 2.027 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2472, allocations: 0 / 1.075 GB, free: 2.027 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002215/0.2475, allocations: 187.3 kB / 1.076 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002453/0.2477, allocations: 34.61 kB / 1.076 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/0.2509, allocations: 2.764 MB / 1.078 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.2512, allocations: 0.7514 MB / 1.079 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.887e-05/0.2513, allocations: 21.48 kB / 1.079 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.2514, allocations: 75.41 kB / 1.079 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.2514, allocations: 0 / 1.079 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 8.466/8.718, allocations: 5.323 MB / 1.084 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.065/17.78, allocations: 17.44 kB / 1.084 GB, free: 8.809 MB / 0.8419 GB (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 --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) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches