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.001157/0.001157, allocations: 105.8 kB / 17.15 MB, free: 6.305 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.001109/0.001109, allocations: 198 kB / 18.07 MB, free: 5.41 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.548/1.548, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.0012/0.0012, allocations: 47.94 kB / 280 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1063, allocations: 46.64 MB / 326.6 MB, free: 4.91 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005945/0.1122, allocations: 4.733 MB / 331.3 MB, free: 148 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002654/0.1149, allocations: 1.272 MB / 332.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000345/0.1153, allocations: 12 kB / 332.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003088/0.1157, allocations: 83.3 kB / 332.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004473/0.1161, allocations: 218.2 kB / 332.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006658/0.1168, allocations: 255.7 kB / 333.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008616/0.1177, allocations: 0.9937 MB / 334.2 MB, free: 13.31 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000363/0.118, allocations: 219.3 kB / 334.4 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003985/0.1184, allocations: 370.5 kB / 334.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004392/0.1189, allocations: 430.1 kB / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.269e-05/0.119, allocations: 52 kB / 335.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002048/0.1192, allocations: 71.98 kB / 335.3 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.1193, allocations: 155.3 kB / 335.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003618/0.1197, allocations: 401.8 kB / 335.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008168/0.1205, allocations: 0.9345 MB / 336.7 MB, free: 10.69 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1206, allocations: 0 / 336.7 MB, free: 10.69 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1206, allocations: 0 / 336.7 MB, free: 10.69 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.1206, allocations: 0 / 336.7 MB, free: 10.69 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.00244/0.123, allocations: 1.211 MB / 338 MB, free: 9.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.1231, allocations: 12.02 kB / 338 MB, free: 9.398 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.1233, allocations: 87.91 kB / 338.1 MB, free: 9.312 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006389/0.1239, allocations: 465.4 kB / 338.5 MB, free: 8.816 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.254e-05/0.124, allocations: 45.69 kB / 338.6 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.1241, allocations: 60.38 kB / 338.6 MB, free: 8.715 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.1255, allocations: 0.6392 MB / 339.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.1255, allocations: 0 / 339.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.24e-05/0.1256, allocations: 24 kB / 339.3 MB, free: 8.043 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.1256, allocations: 16 kB / 339.3 MB, free: 8.027 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.1272, allocations: 0.6765 MB / 340 MB, free: 7.352 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.003619/0.1309, allocations: 2.324 MB / 342.3 MB, free: 4.875 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.1324, allocations: 0.5905 MB / 342.9 MB, free: 4.273 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007386/0.1331, allocations: 330 kB / 343.2 MB, free: 3.949 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.146e-05/0.1332, allocations: 12.42 kB / 343.2 MB, free: 3.938 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001033/0.1342, allocations: 429.4 kB / 343.6 MB, free: 3.492 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 1.523e-06/0.1342, allocations: 0 / 343.6 MB, free: 3.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.07129/0.2055, allocations: 15.4 MB / 359 MB, free: 3.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.2057, allocations: 141.5 kB / 359.2 MB, free: 3.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007873/0.2065, allocations: 498.8 kB / 359.7 MB, free: 3.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002649/0.2068, allocations: 49.7 kB / 359.7 MB, free: 3.277 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004575/0.2072, allocations: 367.8 kB / 360.1 MB, free: 2.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004769/0.2077, allocations: 311.5 kB / 360.4 MB, free: 2.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004667/0.2082, allocations: 178.5 kB / 360.6 MB, free: 2.422 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.2084, allocations: 382.8 kB / 360.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002314/0.2107, allocations: 0.7202 MB / 361.6 MB, free: 1.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002386/0.2131, allocations: 0.9304 MB / 362.6 MB, free: 316 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00425/0.2174, allocations: 1.658 MB / 364.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/0.2174, allocations: 4 kB / 364.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02441/0.2418, allocations: 5.354 MB / 369.6 MB, free: 9.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.296e-05/0.242, allocations: 59.41 kB / 369.6 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.309e-05/0.242, allocations: 4 kB / 369.7 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03512/0.2771, allocations: 6.843 MB / 376.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000771/0.278, allocations: 143.7 kB / 376.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2187/0.4967, allocations: 3.152 MB / 379.8 MB, free: 52.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/0.4986, allocations: 183.2 kB / 380 MB, free: 52.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.4988, allocations: 45.22 kB / 380 MB, free: 52.91 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 (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 (50): * Single equations (assignments): 46 * 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.0004626/0.4993, allocations: 229.8 kB / 380.2 MB, free: 52.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.4994, allocations: 75.25 kB / 380.3 MB, free: 52.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02423/0.5237, allocations: 5.095 MB / 385.4 MB, free: 52.33 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.602e-05/0.5238, allocations: 14.16 kB / 385.4 MB, free: 52.33 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/0.5238, allocations: 2.906 kB / 385.4 MB, free: 52.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.049e-05/0.5239, allocations: 3.938 kB / 385.4 MB, free: 52.33 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002091/0.526, allocations: 1.085 MB / 386.5 MB, free: 51.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.526, allocations: 0.625 kB / 386.5 MB, free: 51.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005521/0.5266, allocations: 98 kB / 386.6 MB, free: 51.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03448/0.561, allocations: 6.809 MB / 393.4 MB, free: 50.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002753/0.5614, allocations: 19.64 kB / 393.4 MB, free: 50.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0058/0.5672, allocations: 3.058 MB / 396.5 MB, free: 48.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.5672, allocations: 0 / 396.5 MB, free: 48.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02268/0.5899, allocations: 5.987 MB / 402.5 MB, free: 43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002822/0.5903, allocations: 145.4 kB / 402.6 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003441/0.5906, allocations: 19.94 kB / 402.6 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/0.5921, allocations: 167.8 kB / 402.8 MB, free: 42.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003161/0.5925, allocations: 97.42 kB / 402.9 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/0.5926, allocations: 31.97 kB / 402.9 MB, free: 42.54 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004029/0.593, allocations: 338.9 kB / 403.3 MB, free: 42.21 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.593, allocations: 4 kB / 403.3 MB, free: 42.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009094/0.594, allocations: 252 kB / 403.5 MB, free: 41.96 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 (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.0003429/0.5943, allocations: 137 kB / 403.6 MB, free: 41.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00629/0.6006, allocations: 2.156 MB / 405.8 MB, free: 39.64 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.6007, allocations: 0 / 405.8 MB, free: 39.64 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003134/0.6038, allocations: 1.089 MB / 406.9 MB, free: 38.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009457/0.6048, allocations: 119.5 kB / 407 MB, free: 38.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003815/0.6086, allocations: 2.07 MB / 409.1 MB, free: 36.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.609, allocations: 0.9386 MB / 410 MB, free: 35.42 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003311/0.6093, allocations: 57.31 kB / 410.1 MB, free: 35.37 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.6094, allocations: 31.44 kB / 410.1 MB, free: 35.34 MB / 318.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6094, allocations: 0 / 410.1 MB, free: 35.34 MB / 318.1 MB Notification: Performance of Templates: time 0.02702/0.6365, allocations: 20.62 MB / 430.7 MB, free: 14.72 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