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.0018/0.0018, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.002115/0.002115, allocations: 187 kB / 18.67 MB, free: 4.398 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.553/1.553, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.00111/0.00111, allocations: 59.91 kB / 328.6 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1058, allocations: 46.61 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.249/0.3548, allocations: 4.684 MB / 379.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002776/0.3576, allocations: 1.278 MB / 381.1 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008317/0.3585, allocations: 9.781 kB / 381.1 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004426/0.359, allocations: 115.1 kB / 381.2 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007291/0.3598, allocations: 248.7 kB / 381.5 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009567/0.3607, allocations: 303.1 kB / 381.8 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.3618, allocations: 1.054 MB / 382.8 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004578/0.3623, allocations: 259 kB / 383.1 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000535/0.3628, allocations: 408.5 kB / 383.5 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005634/0.3634, allocations: 456 kB / 383.9 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.3635, allocations: 84.59 kB / 384 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002389/0.3638, allocations: 111.6 kB / 384.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.3639, allocations: 185.7 kB / 384.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003762/0.3643, allocations: 429.4 kB / 384.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.3654, allocations: 0.9754 MB / 385.7 MB, free: 8.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3654, allocations: 5.984 kB / 385.7 MB, free: 8.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3654, allocations: 0 / 385.7 MB, free: 8.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.3654, allocations: 0 / 385.7 MB, free: 8.137 MB / 318.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.002475/0.3679, allocations: 1.21 MB / 386.9 MB, free: 7.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.368, allocations: 10 kB / 386.9 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.3682, allocations: 91.75 kB / 387 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006903/0.3689, allocations: 465.9 kB / 387.5 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.607e-05/0.3689, allocations: 53.05 kB / 387.5 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.369, allocations: 61.72 kB / 387.6 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.3706, allocations: 0.6418 MB / 388.2 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.3706, allocations: 0.6094 kB / 388.2 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.931e-05/0.3707, allocations: 26.41 kB / 388.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.3707, allocations: 14.39 kB / 388.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.3724, allocations: 0.6745 MB / 388.9 MB, free: 6.398 MB / 318.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.0039/0.3764, allocations: 2.31 MB / 391.2 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00176/0.3781, allocations: 0.5898 MB / 391.8 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008168/0.379, allocations: 331.1 kB / 392.2 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.257e-05/0.379, allocations: 9.906 kB / 392.2 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001118/0.3801, allocations: 429.8 kB / 392.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.264e-06/0.3802, allocations: 0 / 392.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.06557/0.4457, allocations: 15.41 MB / 408 MB, free: 13.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/0.4459, allocations: 141.5 kB / 408.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000874/0.4468, allocations: 498.8 kB / 408.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003342/0.4472, allocations: 45.7 kB / 408.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003433/0.4475, allocations: 365.9 kB / 409 MB, free: 12.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000339/0.4479, allocations: 311.2 kB / 409.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004118/0.4483, allocations: 178.5 kB / 409.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.4485, allocations: 386.7 kB / 409.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002123/0.4506, allocations: 0.7202 MB / 410.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.4528, allocations: 0.9265 MB / 411.5 MB, free: 10 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003942/0.4568, allocations: 1.662 MB / 413.2 MB, free: 8.254 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.4568, allocations: 0 / 413.2 MB, free: 8.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02191/0.4787, allocations: 5.344 MB / 418.5 MB, free: 2.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.88e-05/0.4788, allocations: 67.39 kB / 418.6 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.4789, allocations: 12.12 kB / 418.6 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03221/0.5111, allocations: 6.817 MB / 425.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008053/0.5119, allocations: 139.7 kB / 425.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006091/0.518, allocations: 3.012 MB / 428.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002067/0.5201, allocations: 179.8 kB / 428.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.5203, allocations: 51.97 kB / 428.8 MB, free: 8.543 MB / 350.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.0005662/0.5209, allocations: 221.6 kB / 429 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/0.5211, allocations: 83.94 kB / 429.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02156/0.5426, allocations: 5.094 MB / 434.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.368e-05/0.5427, allocations: 11.94 kB / 434.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.5427, allocations: 4 kB / 434.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.363e-05/0.5427, allocations: 3.984 kB / 434.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.5444, allocations: 1.094 MB / 435.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.5445, allocations: 3.938 kB / 435.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005506/0.545, allocations: 99.81 kB / 435.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03226/0.5773, allocations: 6.782 MB / 442.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002499/0.5776, allocations: 23.97 kB / 442.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005789/0.5834, allocations: 3.031 MB / 445.3 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.5834, allocations: 0 / 445.3 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02335/0.6068, allocations: 5.988 MB / 451.2 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003483/0.6072, allocations: 140.2 kB / 451.4 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/0.6074, allocations: 21.25 kB / 451.4 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/0.6087, allocations: 171.8 kB / 451.6 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002728/0.609, allocations: 104.8 kB / 451.7 MB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.707e-05/0.6091, allocations: 31.98 kB / 451.7 MB, free: 1.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004146/0.6095, allocations: 334.9 kB / 452 MB, free: 1.176 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6095, allocations: 0 / 452 MB, free: 1.176 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008193/0.6103, allocations: 260 kB / 452.3 MB, free: 0.9219 MB / 366.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.0003166/0.6106, allocations: 121.9 kB / 452.4 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005936/0.6166, allocations: 2.04 MB / 454.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.6166, allocations: 3.938 kB / 454.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003428/0.6201, allocations: 1.094 MB / 455.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007708/0.6208, allocations: 135 kB / 455.7 MB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.6245, allocations: 1.733 MB / 457.4 MB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005862/0.6251, allocations: 0.9389 MB / 458.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002554/0.6254, allocations: 58.11 kB / 458.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.6255, allocations: 31.44 kB / 458.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of SimCode: time 6.02e-07/0.6255, allocations: 0 / 458.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of Templates: time 0.03836/0.6639, allocations: 22.76 MB / 481.2 MB, free: 3.926 MB / 398.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/jenkins/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/jenkins/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