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.001727/0.001727, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001936/0.001936, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.419/1.419, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001797/0.001797, allocations: 55.92 kB / 328.1 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08872/0.09053, allocations: 46.61 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006588/0.09716, allocations: 4.708 MB / 379.4 MB, free: 352 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.177/0.2742, allocations: 1.274 MB / 380.6 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004466/0.2747, allocations: 9.625 kB / 380.7 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003135/0.2751, allocations: 114.8 kB / 380.8 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005141/0.2756, allocations: 247 kB / 381 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008431/0.2764, allocations: 301.3 kB / 381.3 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001177/0.2776, allocations: 1.054 MB / 382.4 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004774/0.2781, allocations: 269.9 kB / 382.6 MB, free: 8.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006942/0.2788, allocations: 405 kB / 383 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006457/0.2795, allocations: 450.9 kB / 383.5 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.2796, allocations: 88.73 kB / 383.5 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002608/0.2799, allocations: 109.9 kB / 383.6 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.2801, allocations: 185.1 kB / 383.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003893/0.2805, allocations: 429 kB / 384.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00112/0.2816, allocations: 0.9781 MB / 385.2 MB, free: 7.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.2816, allocations: 0 / 385.2 MB, free: 7.855 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.2816, allocations: 0 / 385.2 MB, free: 7.855 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.2816, allocations: 3.938 kB / 385.2 MB, free: 7.852 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.002426/0.2841, allocations: 1.228 MB / 386.5 MB, free: 7.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.2841, allocations: 13.61 kB / 386.5 MB, free: 7.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.2843, allocations: 107.1 kB / 386.6 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.2845, allocations: 93.12 kB / 386.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006332/0.2851, allocations: 471.2 kB / 387.1 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.011e-05/0.2852, allocations: 47.25 kB / 387.2 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.2853, allocations: 62.08 kB / 387.2 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.2868, allocations: 0.6384 MB / 387.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.2868, allocations: 0 / 387.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.615e-05/0.2869, allocations: 23.23 kB / 387.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.2869, allocations: 13.88 kB / 387.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.2887, allocations: 0.6817 MB / 388.6 MB, free: 6.008 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.003908/0.2926, allocations: 2.31 MB / 390.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.2941, allocations: 0.5822 MB / 391.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007678/0.2949, allocations: 340 kB / 391.8 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.545e-05/0.295, allocations: 9.875 kB / 391.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009917/0.296, allocations: 433.3 kB / 392.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.354e-06/0.296, allocations: 1.625 kB / 392.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.0706/0.3666, allocations: 15.44 MB / 407.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/0.3668, allocations: 142.7 kB / 407.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007949/0.3676, allocations: 498.9 kB / 408.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002574/0.3679, allocations: 45.7 kB / 408.4 MB, free: 12.76 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003436/0.3682, allocations: 375.4 kB / 408.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003732/0.3686, allocations: 325 kB / 409 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004137/0.369, allocations: 182.5 kB / 409.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002622/0.3693, allocations: 382.8 kB / 409.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00226/0.3716, allocations: 0.7163 MB / 410.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002405/0.374, allocations: 0.9265 MB / 411.2 MB, free: 9.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004557/0.3786, allocations: 1.662 MB / 412.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.3786, allocations: 0 / 412.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.0246/0.4032, allocations: 5.353 MB / 418.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.761e-05/0.4034, allocations: 59.41 kB / 418.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.4034, allocations: 7.938 kB / 418.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0362/0.4396, allocations: 6.848 MB / 425.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007583/0.4404, allocations: 135.8 kB / 425.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007763/0.4482, allocations: 3.168 MB / 428.5 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/0.4502, allocations: 171.9 kB / 428.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002316/0.4505, allocations: 47.97 kB / 428.7 MB, free: 8.156 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.0006576/0.4511, allocations: 227.6 kB / 428.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002862/0.4514, allocations: 75.53 kB / 429 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02375/0.4752, allocations: 5.113 MB / 434.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-05/0.4753, allocations: 8 kB / 434.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.4753, allocations: 0 / 434.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.338e-05/0.4753, allocations: 3.984 kB / 434.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.4775, allocations: 1.102 MB / 435.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.4775, allocations: 4 kB / 435.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005993/0.4781, allocations: 95.88 kB / 435.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03572/0.5138, allocations: 6.791 MB / 442.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003527/0.5142, allocations: 27.97 kB / 442.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006624/0.5209, allocations: 3.048 MB / 445.2 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.5209, allocations: 0 / 445.2 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02621/0.5471, allocations: 5.985 MB / 451.2 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003481/0.5475, allocations: 148.6 kB / 451.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003649/0.5479, allocations: 16 kB / 451.3 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/0.5496, allocations: 184.3 kB / 451.5 MB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003415/0.55, allocations: 92.88 kB / 451.6 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.5501, allocations: 39.91 kB / 451.6 MB, free: 1.066 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000525/0.5507, allocations: 334.9 kB / 451.9 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5507, allocations: 0 / 451.9 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001028/0.5517, allocations: 256 kB / 452.2 MB, free: 0.4922 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.02776/0.5795, allocations: 6.563 MB / 458.8 MB, free: 9.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008499/0.5881, allocations: 2.178 MB / 460.9 MB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/0.5882, allocations: 0 / 460.9 MB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004168/0.5923, allocations: 1.09 MB / 462 MB, free: 6.609 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.5935, allocations: 134.6 kB / 462.2 MB, free: 6.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06117/0.6547, allocations: 15.76 MB / 477.9 MB, free: 6.473 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008192/0.6556, allocations: 0.9389 MB / 478.9 MB, free: 5.504 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004239/0.656, allocations: 58.11 kB / 478.9 MB, free: 5.445 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004813/0.6565, allocations: 263.3 kB / 479.2 MB, free: 5.188 MB / 398.1 MB Notification: Performance of SimCode: time 1.282e-06/0.6565, allocations: 0 / 479.2 MB, free: 5.188 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07225/0.7288, allocations: 29.11 MB / 0.4964 GB, free: 7.992 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.69/14.42, allocations: 7.969 kB / 0.4964 GB, free: 7.984 MB / 430.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","/var/lib/jenkins1/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