Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.00104, allocations: 96.88 kB / 16.95 MB, free: 6.457 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.001243/0.001243, allocations: 182.1 kB / 17.84 MB, free: 6.008 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.64/1.64, allocations: 205.4 MB / 224 MB, free: 13.14 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.0004659/0.000466, allocations: 16 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1107, allocations: 47.57 MB / 328.3 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005338/0.1161, allocations: 4.076 MB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.1185, allocations: 1.226 MB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002878/0.1188, allocations: 11.94 kB / 333.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002162/0.119, allocations: 83.3 kB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003665/0.1194, allocations: 210.2 kB / 333.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005656/0.12, allocations: 215.7 kB / 334.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000849/0.1208, allocations: 0.9429 MB / 335.1 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000421/0.1213, allocations: 203.5 kB / 335.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005758/0.1218, allocations: 342.7 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006273/0.1225, allocations: 398.3 kB / 336 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002082/0.1227, allocations: 48 kB / 336.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000227/0.123, allocations: 75.97 kB / 336.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.1232, allocations: 139.4 kB / 336.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.1234, allocations: 173.3 kB / 336.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009348/0.1243, allocations: 0.7092 MB / 337.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.679e-05/0.1244, allocations: 4 kB / 337.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.706e-06/0.1244, allocations: 0 / 337.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.1244, allocations: 0 / 337.2 MB, free: 11.2 MB / 286.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.003104/0.1275, allocations: 1.122 MB / 338.3 MB, free: 10.01 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.1276, allocations: 8.031 kB / 338.3 MB, free: 10 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002395/0.1278, allocations: 83.06 kB / 338.4 MB, free: 9.922 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008141/0.1286, allocations: 448.4 kB / 338.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.393e-05/0.1287, allocations: 53.27 kB / 338.9 MB, free: 9.395 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.1288, allocations: 63.98 kB / 338.9 MB, free: 9.332 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.1304, allocations: 0.6545 MB / 339.6 MB, free: 8.668 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.1304, allocations: 0 / 339.6 MB, free: 8.668 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.772e-05/0.1305, allocations: 28 kB / 339.6 MB, free: 8.641 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/0.1305, allocations: 12 kB / 339.6 MB, free: 8.629 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/0.1323, allocations: 0.7312 MB / 340.4 MB, free: 7.898 MB / 286.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.004278/0.1366, allocations: 2.378 MB / 342.7 MB, free: 5.359 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.138, allocations: 0.6296 MB / 343.4 MB, free: 4.723 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000746/0.1388, allocations: 362 kB / 343.7 MB, free: 4.367 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.444e-05/0.1389, allocations: 12.42 kB / 343.7 MB, free: 4.355 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009627/0.1398, allocations: 457.3 kB / 344.2 MB, free: 3.883 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 3.226e-06/0.1398, allocations: 0 / 344.2 MB, free: 3.883 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06665/0.2065, allocations: 16.73 MB / 360.9 MB, free: 3.051 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.2067, allocations: 149.4 kB / 361 MB, free: 2.875 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006427/0.2073, allocations: 490.8 kB / 361.5 MB, free: 2.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001947/0.2075, allocations: 49.7 kB / 361.6 MB, free: 2.336 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003214/0.2079, allocations: 367.9 kB / 361.9 MB, free: 1.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003733/0.2083, allocations: 307.5 kB / 362.2 MB, free: 1.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.527e-05/0.2084, allocations: 24 kB / 362.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.2085, allocations: 382.8 kB / 362.6 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001948/0.2105, allocations: 0.7905 MB / 363.4 MB, free: 480 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00207/0.2126, allocations: 1.001 MB / 364.4 MB, free: 15.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001956/0.2145, allocations: 0.873 MB / 365.3 MB, free: 14.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.207e-05/0.2146, allocations: 0 / 365.3 MB, free: 14.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02175/0.2363, allocations: 5.624 MB / 370.9 MB, free: 8.852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/0.2365, allocations: 63.39 kB / 371 MB, free: 8.777 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.888e-05/0.2366, allocations: 8 kB / 371 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03244/0.269, allocations: 7.316 MB / 378.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007182/0.2698, allocations: 179.7 kB / 378.5 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1799/0.4497, allocations: 3.215 MB / 381.7 MB, free: 51.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.4514, allocations: 220.7 kB / 381.9 MB, free: 51.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.4515, allocations: 45.94 kB / 382 MB, free: 51.94 MB / 318.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 ($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 (50): * Single equations (assignments): 46 * 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.0004035/0.4519, allocations: 221.2 kB / 382.2 MB, free: 51.83 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.4521, allocations: 76.05 kB / 382.2 MB, free: 51.83 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02123/0.4733, allocations: 5.457 MB / 387.7 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-05/0.4734, allocations: 9.344 kB / 387.7 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.4734, allocations: 2.281 kB / 387.7 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.263e-05/0.4734, allocations: 3.75 kB / 387.7 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.475, allocations: 1.088 MB / 388.8 MB, free: 50.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.475, allocations: 3.828 kB / 388.8 MB, free: 50.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005098/0.4756, allocations: 125.8 kB / 388.9 MB, free: 50.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02917/0.5047, allocations: 7.284 MB / 396.2 MB, free: 49.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002141/0.505, allocations: 25.7 kB / 396.2 MB, free: 49.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004386/0.5094, allocations: 3.099 MB / 399.3 MB, free: 46.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5094, allocations: 0 / 399.3 MB, free: 46.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01989/0.5293, allocations: 6.414 MB / 405.8 MB, free: 40.44 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002414/0.5296, allocations: 144.2 kB / 405.9 MB, free: 40.28 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.5297, allocations: 16 kB / 405.9 MB, free: 40.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.5309, allocations: 215.8 kB / 406.1 MB, free: 40.05 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002258/0.5311, allocations: 100.8 kB / 406.2 MB, free: 39.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-05/0.5312, allocations: 35.97 kB / 406.3 MB, free: 39.92 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003252/0.5316, allocations: 334.8 kB / 406.6 MB, free: 39.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5316, allocations: 0 / 406.6 MB, free: 39.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007213/0.5323, allocations: 253 kB / 406.8 MB, free: 39.35 MB / 318.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.0002394/0.5325, allocations: 139.8 kB / 407 MB, free: 39.21 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005555/0.5381, allocations: 2.327 MB / 409.3 MB, free: 36.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5381, allocations: 0 / 409.3 MB, free: 36.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002791/0.5409, allocations: 1.152 MB / 410.4 MB, free: 35.72 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007147/0.5417, allocations: 127.2 kB / 410.6 MB, free: 35.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003261/0.5449, allocations: 2.044 MB / 412.6 MB, free: 33.54 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.5452, allocations: 0.9425 MB / 413.6 MB, free: 32.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002816/0.5455, allocations: 58.06 kB / 413.6 MB, free: 32.51 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.5456, allocations: 27.44 kB / 413.6 MB, free: 32.48 MB / 318.1 MB Notification: Performance of SimCode: time 1.223e-06/0.5456, allocations: 3.938 kB / 413.6 MB, free: 32.48 MB / 318.1 MB Notification: Performance of Templates: time 0.02265/0.5683, allocations: 19.78 MB / 433.4 MB, free: 12.68 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches