Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 108.4 kB / 18.36 MB, free: 4.766 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.001069/0.001069, allocations: 191 kB / 19.29 MB, free: 3.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 51.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09114/0.09241, allocations: 46.62 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006755/0.0992, allocations: 4.697 MB / 333.4 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00268/0.1019, allocations: 1.261 MB / 334.7 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003331/0.1023, allocations: 11.94 kB / 334.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002933/0.1026, allocations: 110.8 kB / 334.8 MB, free: 13.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004271/0.1031, allocations: 245.7 kB / 335 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007242/0.1038, allocations: 303.5 kB / 335.3 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009521/0.1047, allocations: 1.064 MB / 336.4 MB, free: 12.03 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003845/0.1051, allocations: 254.4 kB / 336.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004243/0.1056, allocations: 402.6 kB / 337 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005087/0.1061, allocations: 458.1 kB / 337.5 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001717/0.1063, allocations: 84 kB / 337.6 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001805/0.1065, allocations: 108 kB / 337.7 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.1066, allocations: 195.3 kB / 337.9 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003966/0.107, allocations: 425.9 kB / 338.3 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008823/0.1079, allocations: 0.9771 MB / 339.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1079, allocations: 0 / 339.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1079, allocations: 0 / 339.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.108, allocations: 4 kB / 339.3 MB, free: 9.145 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002517/0.1105, allocations: 1.211 MB / 340.5 MB, free: 7.863 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1105, allocations: 8.031 kB / 340.5 MB, free: 7.855 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.1107, allocations: 91.91 kB / 340.6 MB, free: 7.766 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006688/0.1114, allocations: 465.3 kB / 341 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.885e-05/0.1114, allocations: 45.69 kB / 341.1 MB, free: 7.227 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.1115, allocations: 64.36 kB / 341.1 MB, free: 7.164 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.1128, allocations: 0.6392 MB / 341.8 MB, free: 6.52 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.889e-05/0.1128, allocations: 0 / 341.8 MB, free: 6.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.034e-05/0.1129, allocations: 24 kB / 341.8 MB, free: 6.496 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.1129, allocations: 16 kB / 341.8 MB, free: 6.48 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.1145, allocations: 0.6765 MB / 342.5 MB, free: 5.801 MB / 286.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.003624/0.1181, allocations: 2.327 MB / 344.8 MB, free: 3.324 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.1195, allocations: 0.5866 MB / 345.4 MB, free: 2.727 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006623/0.1202, allocations: 330 kB / 345.7 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.525e-05/0.1202, allocations: 12.38 kB / 345.7 MB, free: 2.391 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008609/0.1211, allocations: 429.4 kB / 346.2 MB, free: 1.945 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 1.763e-06/0.1211, allocations: 0 / 346.2 MB, free: 1.945 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06717/0.1883, allocations: 15.39 MB / 361.6 MB, free: 2.457 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.892e-05/0.1884, allocations: 153.5 kB / 361.7 MB, free: 2.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006062/0.189, allocations: 494.8 kB / 362.2 MB, free: 1.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002025/0.1893, allocations: 45.7 kB / 362.2 MB, free: 1.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002846/0.1896, allocations: 363.9 kB / 362.6 MB, free: 1.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003155/0.1899, allocations: 311.5 kB / 362.9 MB, free: 1.059 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004168/0.1903, allocations: 178.5 kB / 363.1 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1905, allocations: 382.8 kB / 363.4 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001922/0.1924, allocations: 0.7202 MB / 364.2 MB, free: 15.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002025/0.1944, allocations: 0.9265 MB / 365.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003794/0.1982, allocations: 1.662 MB / 366.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.1983, allocations: 4 kB / 366.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02161/0.2199, allocations: 5.343 MB / 372.1 MB, free: 7.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.075e-05/0.22, allocations: 67.39 kB / 372.2 MB, free: 7.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.22, allocations: 4 kB / 372.2 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03242/0.2524, allocations: 6.828 MB / 379 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006379/0.2531, allocations: 139.8 kB / 379.1 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1678/0.4209, allocations: 3.009 MB / 382.1 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.4226, allocations: 180.8 kB / 382.3 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/0.4228, allocations: 45.84 kB / 382.4 MB, free: 52.26 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (50): * Single equations (assignments): 46 * 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.0004129/0.4232, allocations: 229.1 kB / 382.6 MB, free: 52.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.4234, allocations: 75.97 kB / 382.7 MB, free: 52.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02172/0.4451, allocations: 5.098 MB / 387.8 MB, free: 51.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-05/0.4452, allocations: 10.09 kB / 387.8 MB, free: 51.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.4452, allocations: 3.656 kB / 387.8 MB, free: 51.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.129e-05/0.4452, allocations: 9 kB / 387.8 MB, free: 51.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.4468, allocations: 1.085 MB / 388.9 MB, free: 50.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.4469, allocations: 0 / 388.9 MB, free: 50.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005293/0.4474, allocations: 92.55 kB / 388.9 MB, free: 50.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03223/0.4797, allocations: 6.787 MB / 395.7 MB, free: 49.33 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002118/0.4799, allocations: 28.75 kB / 395.8 MB, free: 49.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004981/0.4849, allocations: 3.028 MB / 398.8 MB, free: 47.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.4849, allocations: 3.875 kB / 398.8 MB, free: 47.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0213/0.5062, allocations: 5.986 MB / 404.8 MB, free: 41.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.5065, allocations: 147.5 kB / 404.9 MB, free: 41.33 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002555/0.5067, allocations: 18.38 kB / 404.9 MB, free: 41.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/0.5081, allocations: 167.8 kB / 405.1 MB, free: 41.15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002793/0.5084, allocations: 100.9 kB / 405.2 MB, free: 41.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.5085, allocations: 27.98 kB / 405.2 MB, free: 41.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000389/0.5089, allocations: 336.1 kB / 405.6 MB, free: 40.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5089, allocations: 0 / 405.6 MB, free: 40.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008449/0.5098, allocations: 257.1 kB / 405.8 MB, free: 40.45 MB / 318.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.0003022/0.5101, allocations: 133 kB / 405.9 MB, free: 40.31 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005398/0.5155, allocations: 2.04 MB / 408 MB, free: 38.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.5155, allocations: 4 kB / 408 MB, free: 38.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003157/0.5187, allocations: 1.085 MB / 409.1 MB, free: 37.17 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008027/0.5195, allocations: 134.8 kB / 409.2 MB, free: 37.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003245/0.5228, allocations: 1.733 MB / 410.9 MB, free: 35.31 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.5231, allocations: 0.9375 MB / 411.9 MB, free: 34.35 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002273/0.5233, allocations: 58.02 kB / 411.9 MB, free: 34.29 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.5234, allocations: 35.44 kB / 412 MB, free: 34.26 MB / 318.1 MB Notification: Performance of SimCode: time 6.12e-07/0.5235, allocations: 0 / 412 MB, free: 34.26 MB / 318.1 MB Notification: Performance of Templates: time 0.02396/0.5474, allocations: 22.55 MB / 434.5 MB, free: 11.71 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches