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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 108.5 kB / 17.16 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.001037/0.001037, 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.304/1.304, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001053/0.001053, allocations: 51.92 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07325/0.07432, allocations: 46.62 MB / 326.7 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.004976/0.07934, allocations: 4.726 MB / 331.4 MB, free: 40 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.08127, allocations: 1.276 MB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002267/0.08151, allocations: 15.94 kB / 332.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002207/0.08176, allocations: 79.38 kB / 332.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003445/0.08211, allocations: 214.2 kB / 333 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000487/0.0826, allocations: 259.7 kB / 333.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007288/0.08334, allocations: 0.9936 MB / 334.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002952/0.08365, allocations: 223.3 kB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/0.08397, allocations: 366.5 kB / 334.8 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003871/0.08436, allocations: 426.1 kB / 335.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.685e-05/0.08446, allocations: 52 kB / 335.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.08463, allocations: 79.95 kB / 335.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.08475, allocations: 155.4 kB / 335.5 MB, free: 11.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003065/0.08507, allocations: 405.8 kB / 335.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006611/0.08573, allocations: 0.9306 MB / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.08574, allocations: 0 / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.08575, allocations: 0 / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.08576, allocations: 0 / 336.8 MB, free: 10.57 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.00213/0.0879, allocations: 1.211 MB / 338.1 MB, free: 9.297 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.08794, allocations: 8.031 kB / 338.1 MB, free: 9.289 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.08806, allocations: 102.7 kB / 338.2 MB, free: 9.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.0882, allocations: 87.91 kB / 338.3 MB, free: 9.094 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004793/0.08869, allocations: 465.4 kB / 338.7 MB, free: 8.598 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.08873, allocations: 41.69 kB / 338.7 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.417e-05/0.08883, allocations: 64.38 kB / 338.8 MB, free: 8.496 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.09009, allocations: 0.6351 MB / 339.4 MB, free: 7.852 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.09011, allocations: 0 / 339.4 MB, free: 7.852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.014e-05/0.09018, allocations: 24 kB / 339.5 MB, free: 7.828 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.0902, allocations: 23.92 kB / 339.5 MB, free: 7.805 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.09173, allocations: 0.6765 MB / 340.2 MB, free: 7.129 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.003193/0.09494, allocations: 2.328 MB / 342.5 MB, free: 4.648 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.09624, allocations: 0.5904 MB / 343.1 MB, free: 4.047 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006496/0.0969, allocations: 326 kB / 343.4 MB, free: 3.727 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.917e-05/0.09696, allocations: 12.44 kB / 343.4 MB, free: 3.715 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008936/0.09786, allocations: 421.4 kB / 343.8 MB, free: 3.277 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 1.974e-06/0.09787, allocations: 0 / 343.8 MB, free: 3.277 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06445/0.1623, allocations: 15.41 MB / 359.2 MB, free: 3.773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.7e-05/0.1625, allocations: 149.5 kB / 359.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005351/0.163, allocations: 494.8 kB / 359.9 MB, free: 3.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001558/0.1632, allocations: 45.7 kB / 359.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.1634, allocations: 367.8 kB / 360.3 MB, free: 2.688 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.1636, allocations: 311.5 kB / 360.6 MB, free: 2.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003285/0.164, allocations: 178.5 kB / 360.7 MB, free: 2.199 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1641, allocations: 382.8 kB / 361.1 MB, free: 1.816 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001869/0.166, allocations: 0.7163 MB / 361.8 MB, free: 1.102 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00198/0.168, allocations: 0.9304 MB / 362.8 MB, free: 92 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003668/0.1717, allocations: 1.654 MB / 364.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.1717, allocations: 4 kB / 364.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02195/0.1936, allocations: 5.354 MB / 369.8 MB, free: 8.965 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.096e-05/0.1938, allocations: 63.41 kB / 369.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/0.1938, allocations: 4 kB / 369.8 MB, free: 8.887 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03178/0.2256, allocations: 6.847 MB / 376.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006298/0.2262, allocations: 135.8 kB / 376.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1283/0.3546, allocations: 3.159 MB / 380 MB, free: 52.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.3562, allocations: 184.8 kB / 380.2 MB, free: 52.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/0.3564, allocations: 47.86 kB / 380.2 MB, free: 52.93 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.0003792/0.3568, allocations: 220.1 kB / 380.4 MB, free: 52.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.3569, allocations: 81.84 kB / 380.5 MB, free: 52.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02161/0.3786, allocations: 5.105 MB / 385.6 MB, free: 52.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.025e-05/0.3786, allocations: 9.875 kB / 385.6 MB, free: 52.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.3786, allocations: 0 / 385.6 MB, free: 52.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/0.3787, allocations: 3.797 kB / 385.6 MB, free: 52.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.38, allocations: 1.089 MB / 386.7 MB, free: 51.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.38, allocations: 3.938 kB / 386.7 MB, free: 51.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004715/0.3805, allocations: 90.55 kB / 386.8 MB, free: 51.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0304/0.4109, allocations: 6.805 MB / 393.6 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001878/0.4111, allocations: 31.75 kB / 393.6 MB, free: 50.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004698/0.4158, allocations: 3.049 MB / 396.7 MB, free: 48.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4158, allocations: 4 kB / 396.7 MB, free: 48.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02076/0.4366, allocations: 5.977 MB / 402.7 MB, free: 42.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.4368, allocations: 142.4 kB / 402.8 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001842/0.437, allocations: 27.98 kB / 402.8 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.4382, allocations: 167.8 kB / 403 MB, free: 42.4 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.4384, allocations: 96.86 kB / 403.1 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.211e-05/0.4385, allocations: 35.8 kB / 403.1 MB, free: 42.28 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002758/0.4388, allocations: 338.9 kB / 403.5 MB, free: 41.95 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4388, allocations: 0 / 403.5 MB, free: 41.95 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000656/0.4395, allocations: 252.9 kB / 403.7 MB, free: 41.7 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.02124/0.4607, allocations: 6.564 MB / 410.3 MB, free: 35.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005645/0.4664, allocations: 2.164 MB / 412.4 MB, free: 32.92 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.4664, allocations: 0 / 412.4 MB, free: 32.92 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002868/0.4693, allocations: 1.074 MB / 413.5 MB, free: 31.85 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006947/0.47, allocations: 136 kB / 413.6 MB, free: 31.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04715/0.5172, allocations: 16.28 MB / 429.9 MB, free: 15.24 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.5175, allocations: 0.9389 MB / 430.9 MB, free: 14.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003166/0.5178, allocations: 52 kB / 430.9 MB, free: 14.22 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.5181, allocations: 256.1 kB / 431.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.5181, allocations: 7.938 kB / 431.2 MB, free: 13.96 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.169/1.688, allocations: 26.98 MB / 458.2 MB, free: 2.918 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003865/1.688, allocations: 245.8 kB / 458.4 MB, free: 2.652 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.651/4.339, allocations: 0 / 458.4 MB, free: 2.652 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > 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/jenkins1/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