Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008504/0.0008504, allocations: 101.3 kB / 17 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001034/0.001034, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002529/0.0002529, allocations: 8 kB / 307.1 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1269, allocations: 51.52 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004967/0.1319, allocations: 4.304 MB / 362.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.1343, allocations: 1.249 MB / 364.2 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002383/0.1345, allocations: 8 kB / 364.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002386/0.1348, allocations: 95.22 kB / 364.3 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003842/0.1351, allocations: 218.1 kB / 364.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005645/0.1357, allocations: 219.7 kB / 364.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000913/0.1366, allocations: 0.9779 MB / 365.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003525/0.137, allocations: 211.6 kB / 365.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004394/0.1375, allocations: 354.7 kB / 366.2 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005163/0.138, allocations: 414.2 kB / 366.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.527e-05/0.1381, allocations: 48 kB / 366.7 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001918/0.1383, allocations: 67.97 kB / 366.8 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.1385, allocations: 147.4 kB / 366.9 MB, free: 5.098 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.1386, allocations: 169.3 kB / 367.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006996/0.1394, allocations: 0.7403 MB / 367.8 MB, free: 4.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1394, allocations: 0 / 367.8 MB, free: 4.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1394, allocations: 0 / 367.8 MB, free: 4.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.1394, allocations: 4 kB / 367.8 MB, free: 4.18 MB / 302.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.00209/0.1415, allocations: 1.165 MB / 369 MB, free: 2.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.1415, allocations: 8.031 kB / 369 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.1417, allocations: 98.81 kB / 369.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005551/0.1422, allocations: 454.7 kB / 369.5 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.635e-05/0.1423, allocations: 45.31 kB / 369.6 MB, free: 2.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.1424, allocations: 64 kB / 369.6 MB, free: 2.254 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.1438, allocations: 0.6896 MB / 370.3 MB, free: 1.555 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.1438, allocations: 0 / 370.3 MB, free: 1.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.37e-05/0.1439, allocations: 27.94 kB / 370.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.132e-05/0.1439, allocations: 16 kB / 370.4 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001579/0.1455, allocations: 0.7547 MB / 371.1 MB, free: 0.7578 MB / 302.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.2583/0.4038, allocations: 2.417 MB / 373.5 MB, free: 18.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.4054, allocations: 0.6409 MB / 374.2 MB, free: 18.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008039/0.4062, allocations: 362.2 kB / 374.5 MB, free: 18.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.815e-05/0.4063, allocations: 18.08 kB / 374.5 MB, free: 18.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001009/0.4073, allocations: 455.5 kB / 375 MB, free: 18.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.665e-06/0.4073, allocations: 0 / 375 MB, free: 18.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06489/0.4722, allocations: 16.74 MB / 391.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.4723, allocations: 145.5 kB / 391.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005759/0.4729, allocations: 0.5185 MB / 392.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001597/0.4731, allocations: 41.7 kB / 392.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.4733, allocations: 391.2 kB / 392.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.4735, allocations: 314.4 kB / 393.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.258e-05/0.4736, allocations: 20 kB / 393.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.627e-05/0.4737, allocations: 393.4 kB / 393.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/0.4753, allocations: 0.7908 MB / 394.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00173/0.4771, allocations: 1.036 MB / 395.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001713/0.4788, allocations: 0.8806 MB / 396.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.4788, allocations: 4 kB / 396.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01934/0.4982, allocations: 5.646 MB / 401.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.064e-05/0.4983, allocations: 67.39 kB / 402 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.4983, allocations: 8 kB / 402 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03118/0.5295, allocations: 7.311 MB / 409.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007375/0.5302, allocations: 183.7 kB / 409.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006419/0.5367, allocations: 3.221 MB / 412.7 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001578/0.5383, allocations: 227.8 kB / 412.9 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.5384, allocations: 51.97 kB / 412.9 MB, free: 7.133 MB / 318.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 ($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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004571/0.5389, allocations: 217.7 kB / 413.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.539, allocations: 79.06 kB / 413.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02054/0.5595, allocations: 5.472 MB / 418.7 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-05/0.5596, allocations: 14.48 kB / 418.7 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.5596, allocations: 0 / 418.7 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.93e-05/0.5597, allocations: 11.84 kB / 418.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/0.5614, allocations: 1.108 MB / 419.8 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.5615, allocations: 0 / 419.8 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005196/0.562, allocations: 119.9 kB / 420 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03109/0.5931, allocations: 7.289 MB / 427.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002272/0.5934, allocations: 27.97 kB / 427.3 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005562/0.5989, allocations: 3.087 MB / 430.4 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.599, allocations: 0 / 430.4 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02278/0.6218, allocations: 6.424 MB / 436.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.6221, allocations: 140.2 kB / 436.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001598/0.6222, allocations: 27.94 kB / 436.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.6235, allocations: 215.8 kB / 437.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002423/0.6238, allocations: 96.84 kB / 437.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.088e-05/0.6239, allocations: 31.97 kB / 437.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004143/0.6243, allocations: 350.5 kB / 437.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6243, allocations: 0 / 437.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007917/0.6251, allocations: 264 kB / 437.9 MB, free: 14.06 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002584/0.6253, allocations: 130.7 kB / 438 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006417/0.6318, allocations: 2.33 MB / 440.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6318, allocations: 0 / 440.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00337/0.6352, allocations: 1.164 MB / 441.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007359/0.6359, allocations: 122.2 kB / 441.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004131/0.6401, allocations: 2.102 MB / 443.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005118/0.6406, allocations: 0.944 MB / 444.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002856/0.6409, allocations: 62.27 kB / 444.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.641, allocations: 27.44 kB / 444.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of SimCode: time 2.445e-06/0.6411, allocations: 8 kB / 444.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of Templates: time 0.03332/0.6744, allocations: 19.82 MB / 464.6 MB, free: 3.375 MB / 366.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches