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.001353/0.001353, allocations: 109.4 kB / 17.73 MB, free: 5.34 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.001364/0.001364, allocations: 196.2 kB / 18.67 MB, free: 4.402 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.586/1.586, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001655/0.001655, allocations: 56.39 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09973/0.1014, allocations: 46.61 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006745/0.1082, allocations: 4.715 MB / 379.4 MB, free: 332 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2138/0.3221, allocations: 1.273 MB / 380.6 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004305/0.3225, allocations: 10.47 kB / 380.7 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003041/0.3229, allocations: 114.9 kB / 380.8 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000453/0.3234, allocations: 245.5 kB / 381 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007538/0.3241, allocations: 300 kB / 381.3 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.3252, allocations: 1.055 MB / 382.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004968/0.3257, allocations: 262.4 kB / 382.6 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007686/0.3265, allocations: 406.4 kB / 383 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007232/0.3272, allocations: 454.3 kB / 383.5 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.3274, allocations: 85.16 kB / 383.5 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002851/0.3277, allocations: 109.5 kB / 383.6 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001884/0.3279, allocations: 185.9 kB / 383.8 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00042/0.3283, allocations: 433.1 kB / 384.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001256/0.3296, allocations: 0.9735 MB / 385.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.3296, allocations: 0 / 385.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3296, allocations: 5.531 kB / 385.2 MB, free: 7.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.3296, allocations: 0 / 385.2 MB, free: 7.84 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.00257/0.3322, allocations: 1.228 MB / 386.5 MB, free: 6.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.3322, allocations: 13.44 kB / 386.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001428/0.3324, allocations: 106.2 kB / 386.6 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001646/0.3326, allocations: 93.47 kB / 386.7 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006696/0.3332, allocations: 472.6 kB / 387.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.3333, allocations: 47.61 kB / 387.2 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.766e-05/0.3334, allocations: 56.66 kB / 387.2 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.3349, allocations: 0.6387 MB / 387.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.3349, allocations: 0 / 387.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.193e-05/0.335, allocations: 27.2 kB / 387.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.335, allocations: 13.72 kB / 387.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001726/0.3367, allocations: 0.6786 MB / 388.6 MB, free: 6 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.003953/0.3407, allocations: 2.317 MB / 390.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.3424, allocations: 0.583 MB / 391.5 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008357/0.3433, allocations: 340 kB / 391.8 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.689e-05/0.3433, allocations: 6.844 kB / 391.8 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00109/0.3444, allocations: 431 kB / 392.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 3.136e-06/0.3444, allocations: 0 / 392.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.0691/0.4135, allocations: 15.44 MB / 407.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001629/0.4138, allocations: 141.5 kB / 407.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009275/0.4147, allocations: 494.9 kB / 408.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003193/0.415, allocations: 45.7 kB / 408.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005828/0.4156, allocations: 376.1 kB / 408.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005536/0.4162, allocations: 331 kB / 409 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005094/0.4167, allocations: 186.5 kB / 409.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002424/0.417, allocations: 382.8 kB / 409.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002292/0.4193, allocations: 0.7163 MB / 410.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002434/0.4217, allocations: 0.9226 MB / 411.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004743/0.4265, allocations: 1.658 MB / 412.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.4265, allocations: 0 / 412.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.0239/0.4504, allocations: 5.357 MB / 418.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.4506, allocations: 59.41 kB / 418.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/0.4506, allocations: 11.94 kB / 418.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03538/0.486, allocations: 6.837 MB / 425.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007744/0.4868, allocations: 143.7 kB / 425.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007611/0.4945, allocations: 3.168 MB / 428.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/0.4964, allocations: 171.9 kB / 428.6 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002351/0.4967, allocations: 47.97 kB / 428.7 MB, free: 8.141 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.0006283/0.4973, allocations: 229.5 kB / 428.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002827/0.4976, allocations: 80.16 kB / 429 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02319/0.5208, allocations: 5.102 MB / 434.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.101e-05/0.5209, allocations: 8 kB / 434.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.521, allocations: 0 / 434.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-05/0.521, allocations: 7.984 kB / 434.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002273/0.5233, allocations: 1.101 MB / 435.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.5233, allocations: 0 / 435.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005962/0.5239, allocations: 95.83 kB / 435.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03492/0.5589, allocations: 6.796 MB / 442.1 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003611/0.5593, allocations: 24.73 kB / 442.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006605/0.5659, allocations: 3.048 MB / 445.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.5659, allocations: 2.422 kB / 445.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0262/0.5922, allocations: 5.988 MB / 451.2 MB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003423/0.5925, allocations: 148.6 kB / 451.3 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003302/0.5929, allocations: 20 kB / 451.3 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/0.5944, allocations: 175.8 kB / 451.5 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003355/0.5948, allocations: 96.81 kB / 451.6 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000123/0.5949, allocations: 35.97 kB / 451.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000478/0.5954, allocations: 334.9 kB / 452 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5954, allocations: 4 kB / 452 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001004/0.5964, allocations: 252 kB / 452.2 MB, free: 488 kB / 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.02612/0.6226, allocations: 6.564 MB / 458.8 MB, free: 9.883 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007856/0.6305, allocations: 2.172 MB / 460.9 MB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.6305, allocations: 0 / 460.9 MB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004068/0.6346, allocations: 1.092 MB / 462 MB, free: 6.598 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.636, allocations: 139.1 kB / 462.2 MB, free: 6.469 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05928/0.6953, allocations: 15.77 MB / 477.9 MB, free: 6.457 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006478/0.696, allocations: 0.9388 MB / 478.9 MB, free: 5.488 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000368/0.6964, allocations: 54.08 kB / 478.9 MB, free: 5.434 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004425/0.6969, allocations: 263.3 kB / 479.2 MB, free: 5.176 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6969, allocations: 0 / 479.2 MB, free: 5.176 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06903/0.7659, allocations: 29.11 MB / 0.4964 GB, free: 7.98 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/15.4, allocations: 12.03 kB / 0.4964 GB, free: 7.969 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 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.csv","/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