Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001257/0.001257, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001508/0.001508, allocations: 196 kB / 18 MB, free: 5.051 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.488/1.488, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 51.92 kB / 351.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4156/0.4169, allocations: 49.42 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.007713/0.4247, allocations: 4.948 MB / 405.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003784/0.4286, allocations: 1.26 MB / 406.9 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006412/0.4292, allocations: 15.94 kB / 407 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004024/0.4297, allocations: 126.7 kB / 407.1 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006311/0.4304, allocations: 253.6 kB / 407.3 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009582/0.4313, allocations: 307.5 kB / 407.6 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00116/0.4325, allocations: 1.107 MB / 408.7 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004795/0.433, allocations: 262.5 kB / 409 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005431/0.4335, allocations: 418.5 kB / 409.4 MB, free: 132 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006391/0.4342, allocations: 466 kB / 409.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.4343, allocations: 88 kB / 409.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002443/0.4346, allocations: 112 kB / 410.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.4348, allocations: 191.3 kB / 410.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004933/0.4353, allocations: 453.8 kB / 410.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001237/0.4366, allocations: 1.007 MB / 411.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.4366, allocations: 7.938 kB / 411.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4366, allocations: 0 / 411.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.4366, allocations: 0 / 411.7 MB, free: 13.83 MB / 334.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.002906/0.4395, allocations: 1.281 MB / 413 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.14e-05/0.4396, allocations: 12.03 kB / 413 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/0.4398, allocations: 96.36 kB / 413.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009855/0.4408, allocations: 495.9 kB / 413.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.453e-05/0.4409, allocations: 49.69 kB / 413.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.441, allocations: 60.38 kB / 413.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.4426, allocations: 0.6587 MB / 414.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.622e-05/0.4426, allocations: 3.984 kB / 414.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.766e-05/0.4427, allocations: 24 kB / 414.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.4427, allocations: 16 kB / 414.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/0.4445, allocations: 0.6922 MB / 415.1 MB, free: 10.34 MB / 334.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.00421/0.4487, allocations: 2.39 MB / 417.5 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.4502, allocations: 0.5866 MB / 418.1 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007824/0.451, allocations: 326 kB / 418.4 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.949e-05/0.4511, allocations: 8.422 kB / 418.4 MB, free: 6.871 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001069/0.4522, allocations: 429.4 kB / 418.8 MB, free: 6.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.545e-06/0.4522, allocations: 0 / 418.8 MB, free: 6.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06942/0.5216, allocations: 15.43 MB / 434.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.5218, allocations: 141.5 kB / 434.4 MB, free: 6.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/0.523, allocations: 0.5186 MB / 434.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003955/0.5234, allocations: 45.7 kB / 434.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005344/0.524, allocations: 404.7 kB / 435.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006195/0.5246, allocations: 325.2 kB / 435.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006431/0.5253, allocations: 182.6 kB / 435.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002949/0.5256, allocations: 394.7 kB / 436.2 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00226/0.5279, allocations: 0.7243 MB / 436.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002482/0.5304, allocations: 0.9512 MB / 437.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004714/0.5351, allocations: 1.697 MB / 439.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-05/0.5351, allocations: 4 kB / 439.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02437/0.5595, allocations: 5.367 MB / 444.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002351/0.5598, allocations: 63.41 kB / 445 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.011e-05/0.5598, allocations: 4 kB / 445 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03511/0.595, allocations: 6.841 MB / 451.9 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008739/0.5959, allocations: 143.7 kB / 452 MB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00707/0.603, allocations: 3.024 MB / 455 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002018/0.6051, allocations: 175.8 kB / 455.2 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002956/0.6054, allocations: 43.98 kB / 455.2 MB, free: 1.527 MB / 366.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.0006928/0.6061, allocations: 238 kB / 455.5 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003196/0.6065, allocations: 83.48 kB / 455.5 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02251/0.629, allocations: 5.096 MB / 460.6 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.121e-05/0.6291, allocations: 12 kB / 460.7 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.426e-05/0.6291, allocations: 3.984 kB / 460.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.251e-05/0.6292, allocations: 7.922 kB / 460.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.6315, allocations: 1.116 MB / 461.8 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/0.6315, allocations: 0 / 461.8 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005806/0.6321, allocations: 95.88 kB / 461.9 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03346/0.6656, allocations: 6.777 MB / 468.7 MB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003892/0.666, allocations: 27.98 kB / 468.7 MB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006796/0.6728, allocations: 3.044 MB / 471.7 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/0.6729, allocations: 0 / 471.7 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02485/0.6977, allocations: 5.988 MB / 477.7 MB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003458/0.6981, allocations: 148.6 kB / 477.9 MB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003296/0.6985, allocations: 19.98 kB / 477.9 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/0.7, allocations: 167.9 kB / 478 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003328/0.7004, allocations: 96.86 kB / 478.1 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.7005, allocations: 31.98 kB / 478.2 MB, free: 10.39 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005712/0.7011, allocations: 354.8 kB / 478.5 MB, free: 10.04 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7011, allocations: 0 / 478.5 MB, free: 10.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001051/0.7022, allocations: 259.9 kB / 478.8 MB, free: 9.789 MB / 398.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.0003602/0.7025, allocations: 135.2 kB / 478.9 MB, free: 9.648 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006654/0.7092, allocations: 2.052 MB / 480.9 MB, free: 7.574 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.7092, allocations: 0 / 480.9 MB, free: 7.574 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003647/0.7129, allocations: 1.085 MB / 482 MB, free: 6.488 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.714, allocations: 145.2 kB / 482.2 MB, free: 6.344 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004601/0.7186, allocations: 1.817 MB / 484 MB, free: 4.504 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007587/0.7194, allocations: 0.9468 MB / 484.9 MB, free: 3.531 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003314/0.7198, allocations: 58.28 kB / 485 MB, free: 3.473 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.72, allocations: 31.44 kB / 485 MB, free: 3.441 MB / 398.1 MB Notification: Performance of SimCode: time 1.513e-06/0.72, allocations: 0 / 485 MB, free: 3.441 MB / 398.1 MB Notification: Performance of Templates: time 0.03788/0.7579, allocations: 22.85 MB / 0.496 GB, free: 12.68 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches