Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001747/0.001747, allocations: 199.9 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.649/1.649, allocations: 229.5 MB / 247.7 MB, free: 6.316 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007148/0.0007149, allocations: 98.2 kB / 299.9 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002931, allocations: 8 kB / 360.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2272, allocations: 51.42 MB / 412.1 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003382/0.2307, allocations: 4.307 MB / 416.4 MB, free: 21.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002049/0.2327, allocations: 1.876 MB / 418.2 MB, free: 19.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002749/0.233, allocations: 11.94 kB / 418.2 MB, free: 19.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.2332, allocations: 95.23 kB / 418.3 MB, free: 19.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003414/0.2336, allocations: 218.2 kB / 418.6 MB, free: 19.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.2341, allocations: 263.6 kB / 418.8 MB, free: 18.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000585/0.2347, allocations: 1.04 MB / 419.9 MB, free: 17.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.2349, allocations: 215.4 kB / 420.1 MB, free: 17.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002796/0.2352, allocations: 370.5 kB / 420.4 MB, free: 17.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003147/0.2355, allocations: 418 kB / 420.8 MB, free: 16.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.274e-05/0.2356, allocations: 44 kB / 420.9 MB, free: 16.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.2358, allocations: 71.97 kB / 420.9 MB, free: 16.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.224e-05/0.2359, allocations: 151.3 kB / 421.1 MB, free: 16.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002605/0.2361, allocations: 423.5 kB / 421.5 MB, free: 16.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005284/0.2367, allocations: 0.9393 MB / 422.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2367, allocations: 0 / 422.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2367, allocations: 0 / 422.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.166e-06/0.2367, allocations: 0 / 422.4 MB, free: 15.29 MB / 298.7 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.001752/0.2385, allocations: 1.153 MB / 423.6 MB, free: 14.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.2385, allocations: 12.03 kB / 423.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.2386, allocations: 95.89 kB / 423.7 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.2391, allocations: 479.5 kB / 424.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/0.2391, allocations: 53.67 kB / 424.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.2393, allocations: 64.38 kB / 424.3 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.2404, allocations: 0.6744 MB / 425 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.2404, allocations: 0 / 425 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.399e-05/0.2405, allocations: 28 kB / 425 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.2405, allocations: 20 kB / 425 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.2419, allocations: 0.7468 MB / 425.8 MB, free: 11.86 MB / 298.7 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.003013/0.245, allocations: 2.433 MB / 428.2 MB, free: 9.277 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.2461, allocations: 0.6413 MB / 428.8 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006141/0.2468, allocations: 356.6 kB / 429.2 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.502e-05/0.2468, allocations: 12.42 kB / 429.2 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008136/0.2476, allocations: 453.4 kB / 429.6 MB, free: 7.797 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 1.914e-06/0.2477, allocations: 0 / 429.6 MB, free: 7.797 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06573/0.3134, allocations: 16.74 MB / 446.4 MB, free: 6.961 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.3136, allocations: 153.5 kB / 446.5 MB, free: 6.781 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008161/0.3144, allocations: 0.5146 MB / 447 MB, free: 6.258 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000261/0.3147, allocations: 49.7 kB / 447.1 MB, free: 6.203 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003539/0.315, allocations: 375.8 kB / 447.5 MB, free: 5.828 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004622/0.3155, allocations: 315.4 kB / 447.8 MB, free: 5.516 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.3156, allocations: 23.94 kB / 447.8 MB, free: 5.492 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3158, allocations: 386.7 kB / 448.2 MB, free: 5.105 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002128/0.3179, allocations: 0.8025 MB / 449 MB, free: 4.305 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002309/0.3202, allocations: 1.029 MB / 450 MB, free: 3.184 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004459/0.3247, allocations: 1.841 MB / 451.8 MB, free: 1.246 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.3247, allocations: 4 kB / 451.8 MB, free: 1.242 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02359/0.3483, allocations: 5.655 MB / 457.5 MB, free: 11.55 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001239/0.3485, allocations: 60.66 kB / 457.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.933e-05/0.3486, allocations: 11.94 kB / 457.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03436/0.383, allocations: 7.313 MB / 464.9 MB, free: 4.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007735/0.3838, allocations: 183.7 kB / 465.1 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00679/0.3906, allocations: 3.223 MB / 468.3 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001698/0.3923, allocations: 215.9 kB / 468.5 MB, free: 484 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/0.3925, allocations: 47.97 kB / 468.5 MB, free: 436 kB / 330.7 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 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * 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.0005156/0.3931, allocations: 225.7 kB / 468.8 MB, free: 200 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.3933, allocations: 82.97 kB / 468.8 MB, free: 116 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02214/0.4154, allocations: 5.462 MB / 474.3 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-05/0.4155, allocations: 8 kB / 474.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.4155, allocations: 256 / 474.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.901e-05/0.4156, allocations: 7.922 kB / 474.3 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002056/0.4176, allocations: 1.12 MB / 475.4 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.647e-05/0.4177, allocations: 0 / 475.4 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006092/0.4183, allocations: 123.9 kB / 475.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03458/0.4529, allocations: 7.285 MB / 482.8 MB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002765/0.4532, allocations: 27.97 kB / 482.9 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00606/0.4593, allocations: 3.087 MB / 486 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.4593, allocations: 0 / 486 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02464/0.484, allocations: 6.42 MB / 492.4 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000374/0.4844, allocations: 148.2 kB / 492.5 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003926/0.4848, allocations: 20 kB / 492.5 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/0.4864, allocations: 215.8 kB / 492.8 MB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003352/0.4867, allocations: 92.86 kB / 492.8 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.4869, allocations: 35.97 kB / 492.9 MB, free: 7.879 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005364/0.4874, allocations: 354.8 kB / 493.2 MB, free: 7.535 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4874, allocations: 0 / 493.2 MB, free: 7.535 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009545/0.4884, allocations: 256 kB / 493.5 MB, free: 7.285 MB / 362.7 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.0003152/0.4887, allocations: 131.2 kB / 493.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00698/0.4957, allocations: 2.332 MB / 495.9 MB, free: 4.781 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.4958, allocations: 1.375 kB / 495.9 MB, free: 4.781 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003607/0.4994, allocations: 1.171 MB / 497.1 MB, free: 3.613 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.5005, allocations: 122.2 kB / 497.2 MB, free: 3.496 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004749/0.5053, allocations: 2.19 MB / 499.4 MB, free: 1.289 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006356/0.5059, allocations: 0.9506 MB / 0.4886 GB, free: 316 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003677/0.5063, allocations: 62.25 kB / 0.4887 GB, free: 252 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.5065, allocations: 31.44 kB / 0.4887 GB, free: 220 kB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5065, allocations: 4 kB / 0.4887 GB, free: 216 kB / 362.7 MB Notification: Performance of Templates: time 0.2674/0.7739, allocations: 20.48 MB / 0.5087 GB, free: 96.64 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches