Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 115.7 kB / 17.74 MB, free: 5.297 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.001528/0.001528, allocations: 189.6 kB / 18.67 MB, free: 4.375 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.476/1.476, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 43.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2389, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005462/0.2444, allocations: 4.953 MB / 406.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.2467, allocations: 1.26 MB / 407.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003039/0.247, allocations: 11.94 kB / 407.6 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002744/0.2473, allocations: 122.7 kB / 407.8 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004343/0.2477, allocations: 257.6 kB / 408 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006532/0.2484, allocations: 319.4 kB / 408.3 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009908/0.2494, allocations: 1.099 MB / 409.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.2498, allocations: 262.5 kB / 409.7 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004536/0.2502, allocations: 414.6 kB / 410.1 MB, free: 156 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005225/0.2508, allocations: 470.1 kB / 410.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.2509, allocations: 91.94 kB / 410.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002093/0.2511, allocations: 112 kB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.2513, allocations: 195.3 kB / 410.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000361/0.2516, allocations: 453.8 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008744/0.2525, allocations: 1.001 MB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2525, allocations: 0 / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2526, allocations: 0 / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.2526, allocations: 4 kB / 412.4 MB, free: 13.85 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.002401/0.255, allocations: 1.254 MB / 413.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.255, allocations: 12.03 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.2552, allocations: 87.91 kB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006556/0.2558, allocations: 495.5 kB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/0.2559, allocations: 49.69 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.765e-05/0.256, allocations: 60.38 kB / 414.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.2574, allocations: 0.6548 MB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.2574, allocations: 4 kB / 415 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.495e-05/0.2575, allocations: 27.98 kB / 415 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.2575, allocations: 16 kB / 415 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001661/0.2592, allocations: 0.696 MB / 415.7 MB, free: 10.39 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.003691/0.2629, allocations: 2.374 MB / 418.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.2643, allocations: 0.5866 MB / 418.7 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007287/0.2651, allocations: 330 kB / 419 MB, free: 6.945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.572e-05/0.2651, allocations: 20.41 kB / 419 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009119/0.2661, allocations: 425.4 kB / 419.4 MB, free: 6.484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.314e-06/0.2661, allocations: 0 / 419.4 MB, free: 6.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06807/0.3341, allocations: 15.42 MB / 434.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.224e-05/0.3343, allocations: 137.5 kB / 435 MB, free: 6.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000602/0.3349, allocations: 0.5223 MB / 435.5 MB, free: 6.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001715/0.3351, allocations: 53.69 kB / 435.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.3353, allocations: 383.8 kB / 436 MB, free: 5.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.3356, allocations: 307.5 kB / 436.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003473/0.336, allocations: 190.4 kB / 436.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3361, allocations: 386.7 kB / 436.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002019/0.3381, allocations: 0.7244 MB / 437.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002159/0.3403, allocations: 0.9589 MB / 438.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004037/0.3444, allocations: 1.689 MB / 440.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.3444, allocations: 8 kB / 440.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02313/0.3675, allocations: 5.374 MB / 445.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.115e-05/0.3676, allocations: 67.39 kB / 445.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.3677, allocations: 4 kB / 445.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03377/0.4014, allocations: 6.841 MB / 452.5 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007378/0.4022, allocations: 155.7 kB / 452.6 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006949/0.4092, allocations: 3.164 MB / 455.8 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.4109, allocations: 175.8 kB / 456 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001587/0.4111, allocations: 47.97 kB / 456 MB, free: 1.449 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.0004729/0.4116, allocations: 230.1 kB / 456.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001922/0.4118, allocations: 83.06 kB / 456.3 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02233/0.4341, allocations: 5.107 MB / 461.4 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.959e-05/0.4342, allocations: 12 kB / 461.4 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.4342, allocations: 0 / 461.4 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.76e-05/0.4342, allocations: 3.984 kB / 461.4 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/0.4358, allocations: 1.109 MB / 462.6 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.4359, allocations: 4 kB / 462.6 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005726/0.4364, allocations: 95.88 kB / 462.6 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0337/0.4702, allocations: 6.793 MB / 469.4 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/0.4704, allocations: 27.97 kB / 469.5 MB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005933/0.4763, allocations: 3.052 MB / 472.5 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4764, allocations: 0 / 472.5 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0247/0.5011, allocations: 5.987 MB / 478.5 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002189/0.5014, allocations: 148.1 kB / 478.7 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002585/0.5016, allocations: 16 kB / 478.7 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001446/0.5031, allocations: 159.9 kB / 478.8 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002678/0.5034, allocations: 104.9 kB / 478.9 MB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.742e-05/0.5035, allocations: 27.98 kB / 479 MB, free: 10.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004362/0.5039, allocations: 362.8 kB / 479.3 MB, free: 9.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5039, allocations: 0 / 479.3 MB, free: 9.949 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008095/0.5047, allocations: 264 kB / 479.6 MB, free: 9.691 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.0002784/0.505, allocations: 128.9 kB / 479.7 MB, free: 9.559 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006998/0.512, allocations: 2.185 MB / 481.9 MB, free: 7.352 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/0.5121, allocations: 4 kB / 481.9 MB, free: 7.348 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003659/0.5158, allocations: 1.082 MB / 483 MB, free: 6.266 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008481/0.5166, allocations: 138.4 kB / 483.1 MB, free: 6.125 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.5206, allocations: 1.801 MB / 484.9 MB, free: 4.293 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.5211, allocations: 0.9468 MB / 485.8 MB, free: 3.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.5213, allocations: 39.44 kB / 485.9 MB, free: 3.281 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5213, allocations: 7.938 kB / 485.9 MB, free: 3.273 MB / 398.1 MB Notification: Performance of Templates: time 0.02177/0.5431, allocations: 17.46 MB / 0.4916 GB, free: 1.836 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches