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.001712/0.001712, allocations: 114.4 kB / 17.73 MB, free: 5.359 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.001852/0.001853, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.578/1.578, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001221/0.001221, allocations: 55.92 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1052, allocations: 46.61 MB / 375.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.2339/0.3391, allocations: 4.703 MB / 379.9 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003167/0.3424, allocations: 1.277 MB / 381.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003636/0.3427, allocations: 11.97 kB / 381.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003376/0.3431, allocations: 114.1 kB / 381.3 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004661/0.3436, allocations: 250.2 kB / 381.5 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007811/0.3444, allocations: 300.7 kB / 381.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001187/0.3456, allocations: 1.053 MB / 382.8 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005318/0.3461, allocations: 259.4 kB / 383.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006708/0.3468, allocations: 412.4 kB / 383.5 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006316/0.3475, allocations: 453.3 kB / 383.9 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.3476, allocations: 84.69 kB / 384 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002791/0.3479, allocations: 110.1 kB / 384.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.3481, allocations: 189 kB / 384.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000398/0.3485, allocations: 428.7 kB / 384.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.3497, allocations: 0.9805 MB / 385.7 MB, free: 8.133 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3497, allocations: 1.375 kB / 385.7 MB, free: 8.133 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3497, allocations: 0.6562 kB / 385.7 MB, free: 8.133 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.452e-05/0.3497, allocations: 0 / 385.7 MB, free: 8.133 MB / 318.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.002476/0.3522, allocations: 1.209 MB / 386.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.3523, allocations: 8.812 kB / 386.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.3525, allocations: 89.11 kB / 387 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007391/0.3532, allocations: 468.8 kB / 387.5 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.637e-05/0.3533, allocations: 51.92 kB / 387.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.3534, allocations: 64.89 kB / 387.6 MB, free: 6.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.3551, allocations: 0.6392 MB / 388.2 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.3551, allocations: 0 / 388.2 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.3552, allocations: 26.89 kB / 388.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.501e-05/0.3553, allocations: 13.84 kB / 388.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00205/0.3573, allocations: 0.6737 MB / 389 MB, free: 6.398 MB / 318.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.004897/0.3622, allocations: 2.308 MB / 391.3 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.3638, allocations: 0.5857 MB / 391.8 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008199/0.3647, allocations: 331.8 kB / 392.2 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.264e-05/0.3647, allocations: 10.22 kB / 392.2 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001209/0.366, allocations: 433.5 kB / 392.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.815e-06/0.366, allocations: 0 / 392.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.06735/0.4333, allocations: 15.41 MB / 408 MB, free: 13.67 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.4335, allocations: 145.5 kB / 408.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008018/0.4343, allocations: 498.8 kB / 408.6 MB, free: 13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002743/0.4346, allocations: 41.7 kB / 408.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003052/0.4349, allocations: 367.3 kB / 409 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003275/0.4353, allocations: 315.7 kB / 409.4 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003674/0.4356, allocations: 174.5 kB / 409.5 MB, free: 12.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.4359, allocations: 387.4 kB / 409.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002013/0.4379, allocations: 0.7124 MB / 410.6 MB, free: 11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/0.44, allocations: 0.9304 MB / 411.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004053/0.4441, allocations: 1.662 MB / 413.2 MB, free: 8.246 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.4441, allocations: 0 / 413.2 MB, free: 8.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02182/0.4659, allocations: 5.351 MB / 418.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.4661, allocations: 63.39 kB / 418.6 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.4661, allocations: 11.94 kB / 418.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03247/0.4986, allocations: 6.841 MB / 425.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007384/0.4993, allocations: 139.7 kB / 425.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007064/0.5064, allocations: 3.156 MB / 428.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.5083, allocations: 180.7 kB / 428.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002005/0.5085, allocations: 47.92 kB / 429 MB, free: 8.371 MB / 350.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.0007942/0.5093, allocations: 233.5 kB / 429.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002826/0.5096, allocations: 79.06 kB / 429.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0217/0.5313, allocations: 5.097 MB / 434.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.5314, allocations: 11.94 kB / 434.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.5314, allocations: 4 kB / 434.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.711e-05/0.5314, allocations: 11.97 kB / 434.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001853/0.5333, allocations: 1.094 MB / 435.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.5333, allocations: 3.938 kB / 435.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005597/0.5339, allocations: 87.88 kB / 435.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0317/0.5656, allocations: 6.798 MB / 442.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002653/0.5659, allocations: 27.91 kB / 442.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005854/0.5718, allocations: 3.04 MB / 445.5 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.5718, allocations: 1.5 kB / 445.5 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02385/0.5957, allocations: 5.987 MB / 451.5 MB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/0.5961, allocations: 144.3 kB / 451.6 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003373/0.5965, allocations: 23.98 kB / 451.6 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.598, allocations: 167.7 kB / 451.8 MB, free: 1.418 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003544/0.5984, allocations: 96.86 kB / 451.9 MB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/0.5985, allocations: 31.98 kB / 451.9 MB, free: 1.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004793/0.599, allocations: 338.9 kB / 452.2 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.599, allocations: 0 / 452.2 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001142/0.6001, allocations: 252 kB / 452.5 MB, free: 0.7188 MB / 366.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.0004959/0.6006, allocations: 130.1 kB / 452.6 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007105/0.6077, allocations: 2.182 MB / 454.8 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.6078, allocations: 1.125 kB / 454.8 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003541/0.6113, allocations: 1.096 MB / 455.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008835/0.6122, allocations: 124.6 kB / 456 MB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/0.6164, allocations: 1.722 MB / 457.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000594/0.6171, allocations: 0.9388 MB / 458.7 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002852/0.6174, allocations: 59.05 kB / 458.7 MB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.6175, allocations: 35.44 kB / 458.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.6175, allocations: 4 kB / 458.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of Templates: time 0.03616/0.6537, allocations: 22.49 MB / 481.3 MB, free: 3.855 MB / 398.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches