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.004925/0.004925, allocations: 98.3 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 193.3 kB / 16.67 MB, free: 5.949 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 4.309 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.628/2.628, allocations: 469.8 MB / 0.7425 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 64.11 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2811, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003083/0.2842, allocations: 1.963 MB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001138/0.2853, allocations: 0.7089 MB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.198e-05/0.2854, allocations: 8 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.2857, allocations: 87.64 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.2858, allocations: 83.58 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005015/0.2863, allocations: 191.5 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003096/0.2866, allocations: 267.4 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.2868, allocations: 61.89 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001407/0.2869, allocations: 115.7 kB / 1.224 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.2871, allocations: 151.5 kB / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.63e-05/0.2872, allocations: 24 kB / 1.224 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.2873, allocations: 87.94 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.089e-05/0.2874, allocations: 67.75 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.2875, allocations: 103.4 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000366/0.2879, allocations: 318.6 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2879, allocations: 4 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2879, allocations: 0 / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.448e-06/0.2879, allocations: 0 / 1.224 GB, free: 10.08 MB / 0.9825 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.0008353/0.2888, allocations: 0.5856 MB / 1.225 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.2888, allocations: 12.03 kB / 1.225 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.698e-05/0.2888, allocations: 46.73 kB / 1.225 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.161e-05/0.2889, allocations: 28.8 kB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004696/0.2894, allocations: 307 kB / 1.225 GB, free: 9 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.2894, allocations: 12.38 kB / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/0.2895, allocations: 12.38 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003797/0.2898, allocations: 239.5 kB / 1.225 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2899, allocations: 0 / 1.225 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.872e-05/0.2899, allocations: 8 kB / 1.225 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.2899, allocations: 4 kB / 1.225 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002489/0.2901, allocations: 140.3 kB / 1.226 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008195/0.291, allocations: 0.677 MB / 1.226 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003558/0.2913, allocations: 170.5 kB / 1.226 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.2915, allocations: 96.95 kB / 1.227 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.2915, allocations: 4 kB / 1.227 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.2918, allocations: 180.9 kB / 1.227 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.2918, allocations: 0 / 1.227 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0006571/0.2925, allocations: 370.2 kB / 1.227 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.47e-05/0.2926, allocations: 132.5 kB / 1.227 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.2929, allocations: 282.7 kB / 1.227 GB, free: 6.547 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.2929, allocations: 29.7 kB / 1.227 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.293, allocations: 160.3 kB / 1.228 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.054e-05/0.2931, allocations: 43.62 kB / 1.228 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.386e-05/0.2932, allocations: 45.66 kB / 1.228 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2933, allocations: 342.8 kB / 1.228 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.2935, allocations: 87.89 kB / 1.228 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.2937, allocations: 134.6 kB / 1.228 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/0.2941, allocations: 236.6 kB / 1.228 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2941, allocations: 0 / 1.228 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005075/0.2946, allocations: 344.8 kB / 1.229 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.115e-05/0.2946, allocations: 37.69 kB / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2946, allocations: 0 / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.2947, allocations: 0 / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.2948, allocations: 31.91 kB / 1.229 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.2948, allocations: 3.984 kB / 1.229 GB, free: 5 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.2949, allocations: 27.88 kB / 1.229 GB, free: 4.973 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.2949, allocations: 4 kB / 1.229 GB, free: 4.969 MB / 0.9825 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.0001798/0.2951, allocations: 198 kB / 1.229 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.986e-05/0.2952, allocations: 27.86 kB / 1.229 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.305e-05/0.2952, allocations: 29.83 kB / 1.229 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2952, allocations: 0 / 1.229 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2952, allocations: 0 / 1.229 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-06/0.2953, allocations: 0 / 1.229 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002575/0.2955, allocations: 297.3 kB / 1.229 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2955, allocations: 3.938 kB / 1.229 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.4e-05/0.2956, allocations: 16 kB / 1.229 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.2956, allocations: 4 kB / 1.229 GB, free: 4.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.2957, allocations: 7.984 kB / 1.229 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2957, allocations: 4.094 kB / 1.229 GB, free: 4.328 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2957, allocations: 3.938 kB / 1.229 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006836/0.2964, allocations: 466.3 kB / 1.23 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.519e-05/0.2964, allocations: 109 kB / 1.23 GB, free: 3.719 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.754e-05/0.2965, allocations: 8 kB / 1.23 GB, free: 3.711 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.2966, allocations: 15.98 kB / 1.23 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.332e-05/0.2967, allocations: 19.97 kB / 1.23 GB, free: 3.676 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.2967, allocations: 7.984 kB / 1.23 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001775/0.2969, allocations: 202 kB / 1.23 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2969, allocations: 0 / 1.23 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002627/0.2972, allocations: 59.88 kB / 1.23 GB, free: 3.414 MB / 0.9825 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.00104/0.2982, allocations: 1.035 MB / 1.231 GB, free: 2.348 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004556/0.2987, allocations: 295.5 kB / 1.232 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2987, allocations: 0 / 1.232 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002328/0.2989, allocations: 183.3 kB / 1.232 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.2992, allocations: 36.53 kB / 1.232 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.3025, allocations: 2.781 MB / 1.235 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.3029, allocations: 0.7475 MB / 1.235 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.302e-05/0.303, allocations: 17.55 kB / 1.235 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.3031, allocations: 75.41 kB / 1.235 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of SimCode: time 3.91e-07/0.3031, allocations: 0 / 1.235 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.209/1.512, allocations: 5.412 MB / 1.241 GB, free: 8.758 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/16.45, allocations: 4.875 kB / 1.241 GB, free: 8.758 MB / 0.9981 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