Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001427/0.001427, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001774/0.001774, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 60.64 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.11, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006093/0.1162, allocations: 4.967 MB / 362.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.1186, allocations: 1.287 MB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000491/0.1191, allocations: 12 kB / 363.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003753/0.1195, allocations: 126.7 kB / 364 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006328/0.1202, allocations: 253.7 kB / 364.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007435/0.1209, allocations: 307.5 kB / 364.5 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.1221, allocations: 1.095 MB / 365.6 MB, free: 5.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003918/0.1225, allocations: 266.5 kB / 365.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005209/0.123, allocations: 410.5 kB / 366.3 MB, free: 5.266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005914/0.1236, allocations: 470 kB / 366.7 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001596/0.1238, allocations: 88 kB / 366.8 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002447/0.1241, allocations: 116 kB / 366.9 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.1242, allocations: 191.3 kB / 367.1 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000449/0.1247, allocations: 445.8 kB / 367.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008574/0.1255, allocations: 1.001 MB / 368.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1256, allocations: 7.922 kB / 368.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1256, allocations: 0 / 368.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.468e-05/0.1256, allocations: 0 / 368.6 MB, free: 2.969 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002438/0.128, allocations: 1.25 MB / 369.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1281, allocations: 12.03 kB / 369.8 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001282/0.1282, allocations: 114.6 kB / 369.9 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.1284, allocations: 91.81 kB / 370 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006209/0.129, allocations: 483.4 kB / 370.5 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.1291, allocations: 49.69 kB / 370.5 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.1292, allocations: 60.38 kB / 370.6 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.1306, allocations: 0.6624 MB / 371.3 MB, free: 140 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.1306, allocations: 0 / 371.3 MB, free: 140 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.195e-05/0.1307, allocations: 24 kB / 371.3 MB, free: 116 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.1307, allocations: 16 kB / 371.3 MB, free: 100 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1649/0.2956, allocations: 0.6875 MB / 372 MB, free: 20.17 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00392/0.2996, allocations: 2.379 MB / 374.4 MB, free: 19.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.3011, allocations: 0.5869 MB / 375 MB, free: 18.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007703/0.3019, allocations: 333.3 kB / 375.3 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.244e-05/0.302, allocations: 10.81 kB / 375.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009838/0.303, allocations: 427.7 kB / 375.7 MB, free: 18.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.254e-06/0.303, allocations: 0 / 375.7 MB, free: 18.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.07071/0.3737, allocations: 15.44 MB / 391.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.3738, allocations: 141.4 kB / 391.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005771/0.3744, allocations: 0.5171 MB / 391.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.3746, allocations: 47.25 kB / 391.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.3747, allocations: 388.5 kB / 392.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/0.3749, allocations: 315.1 kB / 392.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.3753, allocations: 186.5 kB / 392.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.396e-05/0.3753, allocations: 382.8 kB / 393.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001891/0.3772, allocations: 0.7205 MB / 393.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00188/0.3791, allocations: 0.959 MB / 394.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003659/0.3828, allocations: 1.693 MB / 396.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.3828, allocations: 4 kB / 396.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02204/0.4049, allocations: 5.377 MB / 401.9 MB, free: 2.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.251e-05/0.405, allocations: 62.22 kB / 401.9 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.405, allocations: 8 kB / 401.9 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04713/0.4522, allocations: 6.848 MB / 408.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007231/0.4529, allocations: 151 kB / 408.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007014/0.4599, allocations: 3.164 MB / 412.1 MB, free: 8.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.4618, allocations: 179.9 kB / 412.3 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000165/0.462, allocations: 51.97 kB / 412.3 MB, free: 7.832 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0005347/0.4625, allocations: 233.6 kB / 412.5 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/0.4627, allocations: 79.06 kB / 412.6 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02336/0.4861, allocations: 5.103 MB / 417.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.58e-05/0.4862, allocations: 12 kB / 417.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.4862, allocations: 0 / 417.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.951e-05/0.4862, allocations: 3.984 kB / 417.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.4884, allocations: 1.106 MB / 418.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/0.4884, allocations: 0.8125 kB / 418.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005949/0.489, allocations: 91.88 kB / 418.9 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03426/0.5233, allocations: 6.799 MB / 425.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002772/0.5236, allocations: 27.97 kB / 425.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006274/0.5299, allocations: 3.037 MB / 428.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.5299, allocations: 0 / 428.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0256/0.5555, allocations: 5.99 MB / 434.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002931/0.5559, allocations: 144.2 kB / 434.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002948/0.5562, allocations: 23.88 kB / 434.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001583/0.5578, allocations: 171.8 kB / 435.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003462/0.5581, allocations: 93.75 kB / 435.2 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.5583, allocations: 31.97 kB / 435.2 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004344/0.5587, allocations: 358.8 kB / 435.6 MB, free: 404 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5587, allocations: 4 kB / 435.6 MB, free: 400 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008281/0.5596, allocations: 258.8 kB / 435.8 MB, free: 144 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0257/0.5853, allocations: 6.569 MB / 442.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007553/0.5929, allocations: 2.187 MB / 444.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.5929, allocations: 448 / 444.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003742/0.5967, allocations: 1.1 MB / 445.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008901/0.5976, allocations: 143.9 kB / 445.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05752/0.6551, allocations: 16.21 MB / 462 MB, free: 5.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005602/0.6557, allocations: 0.9429 MB / 463 MB, free: 4.617 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003566/0.6561, allocations: 62.27 kB / 463 MB, free: 4.555 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/0.6565, allocations: 271.3 kB / 463.3 MB, free: 4.289 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.6565, allocations: 0 / 463.3 MB, free: 4.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06095/0.7174, allocations: 29.23 MB / 492.5 MB, free: 7.273 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.64, allocations: 8.359 kB / 492.6 MB, free: 7.266 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches