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.001367/0.001367, allocations: 110.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.001485/0.001485, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.561/1.561, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001416/0.001416, allocations: 48.41 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1138, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006231/0.1201, allocations: 4.704 MB / 379.4 MB, free: 344 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2665/0.3867, allocations: 1.278 MB / 380.6 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006533/0.3874, allocations: 10.39 kB / 380.7 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004065/0.3879, allocations: 116 kB / 380.8 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000786/0.3887, allocations: 256.2 kB / 381 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.3898, allocations: 294.6 kB / 381.3 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001656/0.3914, allocations: 1.054 MB / 382.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006378/0.3921, allocations: 269 kB / 382.6 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001295/0.3934, allocations: 415.3 kB / 383 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001326/0.3947, allocations: 450.5 kB / 383.5 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003581/0.3951, allocations: 84.31 kB / 383.5 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005359/0.3957, allocations: 110 kB / 383.7 MB, free: 8.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000233/0.3959, allocations: 185.1 kB / 383.8 MB, free: 8.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007512/0.3967, allocations: 431.9 kB / 384.3 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00266/0.3993, allocations: 0.9737 MB / 385.2 MB, free: 7.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.3994, allocations: 1.25 kB / 385.2 MB, free: 7.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.3994, allocations: 4 kB / 385.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.238e-05/0.3994, allocations: 0.75 kB / 385.2 MB, free: 7.844 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.003532/0.403, allocations: 1.235 MB / 386.5 MB, free: 6.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.71e-05/0.4031, allocations: 10.42 kB / 386.5 MB, free: 6.996 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001704/0.4032, allocations: 101.5 kB / 386.6 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003096/0.4036, allocations: 92.75 kB / 386.7 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.4046, allocations: 474.3 kB / 387.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.152e-05/0.4047, allocations: 42.09 kB / 387.2 MB, free: 6.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001593/0.4048, allocations: 62.52 kB / 387.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001924/0.4068, allocations: 0.6395 MB / 387.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/0.4068, allocations: 0 / 387.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.31e-05/0.4069, allocations: 26.69 kB / 387.9 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.756e-05/0.4069, allocations: 18.41 kB / 387.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001916/0.4088, allocations: 0.6748 MB / 388.6 MB, free: 6.004 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.004739/0.4136, allocations: 2.315 MB / 390.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.4153, allocations: 0.584 MB / 391.5 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008049/0.4161, allocations: 335.7 kB / 391.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.063e-05/0.4161, allocations: 9.859 kB / 391.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/0.4172, allocations: 429.9 kB / 392.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.765e-06/0.4172, allocations: 0 / 392.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.07148/0.4887, allocations: 15.44 MB / 407.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.4889, allocations: 145.5 kB / 407.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006658/0.4895, allocations: 494.9 kB / 408.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002249/0.4898, allocations: 49.64 kB / 408.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002838/0.4901, allocations: 376.7 kB / 408.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003231/0.4904, allocations: 329.5 kB / 409.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003621/0.4908, allocations: 182.5 kB / 409.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.4909, allocations: 382.8 kB / 409.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/0.4929, allocations: 0.7163 MB / 410.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/0.4951, allocations: 0.9265 MB / 411.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004044/0.4991, allocations: 1.654 MB / 412.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.4992, allocations: 0 / 412.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02309/0.5223, allocations: 5.36 MB / 418.3 MB, free: 2.641 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001142/0.5224, allocations: 59.41 kB / 418.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/0.5225, allocations: 8 kB / 418.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03442/0.5569, allocations: 6.841 MB / 425.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008479/0.5578, allocations: 135.8 kB / 425.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007279/0.5651, allocations: 3.17 MB / 428.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/0.5671, allocations: 172.7 kB / 428.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001669/0.5673, allocations: 51.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.0006141/0.5679, allocations: 223.7 kB / 428.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/0.5682, allocations: 79.53 kB / 429 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02159/0.5898, allocations: 5.106 MB / 434.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-05/0.5898, allocations: 8 kB / 434.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.5899, allocations: 4 kB / 434.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.518e-05/0.5899, allocations: 3.984 kB / 434.1 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001621/0.5915, allocations: 1.101 MB / 435.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.5916, allocations: 4 kB / 435.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005329/0.5921, allocations: 91.83 kB / 435.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03194/0.624, allocations: 6.797 MB / 442.1 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002809/0.6244, allocations: 23.98 kB / 442.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005718/0.6301, allocations: 3.044 MB / 445.2 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.6301, allocations: 5.312 kB / 445.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02352/0.6537, allocations: 5.983 MB / 451.2 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003528/0.6541, allocations: 148.6 kB / 451.3 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002162/0.6543, allocations: 20.06 kB / 451.3 MB, free: 1.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/0.6557, allocations: 175.7 kB / 451.5 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002606/0.656, allocations: 96.88 kB / 451.6 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.912e-05/0.6561, allocations: 31.97 kB / 451.6 MB, free: 1.059 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003978/0.6565, allocations: 338.9 kB / 452 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6565, allocations: 0 / 452 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008133/0.6573, allocations: 252 kB / 452.2 MB, free: 496 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.02447/0.6818, allocations: 6.575 MB / 458.8 MB, free: 9.879 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006863/0.6887, allocations: 2.173 MB / 460.9 MB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.6888, allocations: 0 / 460.9 MB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003535/0.6923, allocations: 1.093 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.0008707/0.6932, allocations: 131 kB / 462.2 MB, free: 6.473 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05394/0.7472, allocations: 15.77 MB / 477.9 MB, free: 6.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005097/0.7477, allocations: 0.935 MB / 478.9 MB, free: 5.488 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003733/0.7481, 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.0003505/0.7484, allocations: 263.3 kB / 479.2 MB, free: 5.176 MB / 398.1 MB Notification: Performance of SimCode: time 1.463e-06/0.7485, allocations: 0 / 479.2 MB, free: 5.176 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06547/0.8139, allocations: 29.12 MB / 0.4964 GB, free: 7.973 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.5/15.31, allocations: 12.03 kB / 0.4964 GB, free: 7.961 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