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.001325/0.001325, allocations: 115 kB / 17.93 MB, free: 5.566 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.001563/0.001563, allocations: 189.4 kB / 18.86 MB, free: 4.645 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.519/1.519, allocations: 205.1 MB / 224.7 MB, free: 12.31 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.001187/0.001187, allocations: 47.94 kB / 280.8 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1033, allocations: 46.64 MB / 327.4 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005279/0.1086, allocations: 4.715 MB / 332.2 MB, free: 32 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.1111, allocations: 1.257 MB / 333.4 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004228/0.1115, allocations: 15.94 kB / 333.4 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003094/0.1119, allocations: 71.38 kB / 333.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004762/0.1124, allocations: 218.2 kB / 333.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006769/0.113, allocations: 263.7 kB / 334 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009279/0.114, allocations: 1.048 MB / 335 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003779/0.1144, allocations: 250.4 kB / 335.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000454/0.1148, allocations: 414.5 kB / 335.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004407/0.1153, allocations: 450.1 kB / 336.1 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.1154, allocations: 88 kB / 336.2 MB, free: 11.96 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.1156, allocations: 108 kB / 336.3 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.1157, allocations: 183.3 kB / 336.5 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003159/0.1161, allocations: 434 kB / 336.9 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006107/0.1167, allocations: 0.725 MB / 337.6 MB, free: 10.53 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.1167, allocations: 0 / 337.6 MB, free: 10.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1167, allocations: 0 / 337.6 MB, free: 10.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1167, allocations: 0 / 337.6 MB, free: 10.53 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.002296/0.119, allocations: 1.211 MB / 338.8 MB, free: 9.246 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.922e-05/0.1191, allocations: 12.02 kB / 338.8 MB, free: 9.234 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.1193, allocations: 91.84 kB / 338.9 MB, free: 9.145 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005289/0.1198, allocations: 461.4 kB / 339.4 MB, free: 8.652 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.644e-05/0.1198, allocations: 45.69 kB / 339.4 MB, free: 8.609 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.84e-05/0.1199, allocations: 64.38 kB / 339.5 MB, free: 8.547 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1212, allocations: 0.6392 MB / 340.1 MB, free: 7.898 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.1213, allocations: 0 / 340.1 MB, free: 7.898 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.1213, allocations: 28 kB / 340.2 MB, free: 7.871 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.1214, allocations: 12 kB / 340.2 MB, free: 7.859 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.1229, allocations: 0.6765 MB / 340.8 MB, free: 7.184 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.003542/0.1264, allocations: 2.343 MB / 343.2 MB, free: 4.691 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001328/0.1278, allocations: 0.5865 MB / 343.8 MB, free: 4.094 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006591/0.1284, allocations: 334 kB / 344.1 MB, free: 3.766 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.491e-05/0.1285, allocations: 12.42 kB / 344.1 MB, free: 3.754 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009613/0.1295, allocations: 429.4 kB / 344.5 MB, free: 3.309 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 3.006e-06/0.1295, allocations: 0 / 344.5 MB, free: 3.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06977/0.1993, allocations: 15.39 MB / 359.9 MB, free: 3.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.1994, allocations: 145.5 kB / 360.1 MB, free: 3.645 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006129/0.2, allocations: 494.8 kB / 360.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00021/0.2002, allocations: 49.7 kB / 360.6 MB, free: 3.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002549/0.2005, allocations: 367.9 kB / 361 MB, free: 2.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000293/0.2008, allocations: 315.5 kB / 361.3 MB, free: 2.418 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003594/0.2012, allocations: 174.5 kB / 361.4 MB, free: 2.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.2013, allocations: 382.8 kB / 361.8 MB, free: 1.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/0.2033, allocations: 0.7163 MB / 362.5 MB, free: 1.145 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002082/0.2054, allocations: 0.9303 MB / 363.5 MB, free: 136 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003952/0.2094, allocations: 1.654 MB / 365.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.2094, allocations: 4 kB / 365.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02436/0.2338, allocations: 5.343 MB / 370.5 MB, free: 9.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.36e-05/0.2339, allocations: 63.39 kB / 370.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.2339, allocations: 4.125 kB / 370.5 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03535/0.2693, allocations: 6.836 MB / 377.4 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007078/0.2701, allocations: 143.8 kB / 377.5 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1707/0.4408, allocations: 3.006 MB / 380.5 MB, free: 53.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/0.4428, allocations: 186.5 kB / 380.7 MB, free: 53.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000174/0.443, allocations: 44.25 kB / 380.7 MB, free: 53.02 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.0004858/0.4435, allocations: 227.2 kB / 381 MB, free: 52.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.4437, allocations: 75.03 kB / 381 MB, free: 52.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02451/0.4682, allocations: 5.1 MB / 386.1 MB, free: 52.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.682e-05/0.4683, allocations: 9.562 kB / 386.1 MB, free: 52.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.4683, allocations: 0 / 386.1 MB, free: 52.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-05/0.4684, allocations: 8.391 kB / 386.1 MB, free: 52.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001678/0.4701, allocations: 1.09 MB / 387.2 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.4701, allocations: 1.266 kB / 387.2 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005199/0.4706, allocations: 89.69 kB / 387.3 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03411/0.5047, allocations: 6.788 MB / 394.1 MB, free: 50.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002557/0.505, allocations: 33.06 kB / 394.1 MB, free: 50.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005249/0.5103, allocations: 3.035 MB / 397.2 MB, free: 48.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.5104, allocations: 0 / 397.2 MB, free: 48.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02328/0.5336, allocations: 5.984 MB / 403.2 MB, free: 43.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.534, allocations: 143.4 kB / 403.3 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002012/0.5342, allocations: 24.97 kB / 403.3 MB, free: 43.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.5356, allocations: 175.8 kB / 403.5 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002672/0.5359, allocations: 96.88 kB / 403.6 MB, free: 42.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-05/0.536, allocations: 31.98 kB / 403.6 MB, free: 42.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003288/0.5363, allocations: 330.9 kB / 403.9 MB, free: 42.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5363, allocations: 3.938 kB / 404 MB, free: 42.39 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007206/0.537, allocations: 259.1 kB / 404.2 MB, free: 42.14 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.0002689/0.5373, allocations: 130 kB / 404.3 MB, free: 42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005397/0.5427, allocations: 2.051 MB / 406.4 MB, free: 39.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.5428, allocations: 4 kB / 406.4 MB, free: 39.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003029/0.5458, allocations: 1.084 MB / 407.5 MB, free: 38.85 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007792/0.5466, allocations: 129.1 kB / 407.6 MB, free: 38.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/0.5499, allocations: 2.12 MB / 409.7 MB, free: 36.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.5502, allocations: 0.9375 MB / 410.7 MB, free: 35.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.5504, allocations: 39.42 kB / 410.7 MB, free: 35.62 MB / 318.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5504, allocations: 0 / 410.7 MB, free: 35.62 MB / 318.1 MB Notification: Performance of Templates: time 0.0168/0.5672, allocations: 16.86 MB / 427.6 MB, free: 18.75 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 -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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches