Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001548/0.001548, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001954/0.001955, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 59.97 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1042, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.00977/0.114, allocations: 4.967 MB / 362.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004018/0.1181, allocations: 1.28 MB / 363.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007121/0.1188, allocations: 11.94 kB / 363.8 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006455/0.1195, allocations: 130.7 kB / 364 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00136/0.1209, allocations: 257.6 kB / 364.2 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.1222, allocations: 307.5 kB / 364.5 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00161/0.1239, allocations: 1.095 MB / 365.6 MB, free: 5.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004754/0.1244, allocations: 266.5 kB / 365.9 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006524/0.125, allocations: 414.5 kB / 366.3 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006159/0.1257, allocations: 470 kB / 366.7 MB, free: 4.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001995/0.1259, allocations: 84 kB / 366.8 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.1262, allocations: 116 kB / 366.9 MB, free: 4.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000236/0.1264, allocations: 187.3 kB / 367.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006121/0.127, allocations: 449.8 kB / 367.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001427/0.1285, allocations: 1.001 MB / 368.6 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1285, allocations: 4 kB / 368.6 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.689e-06/0.1285, allocations: 0 / 368.6 MB, free: 2.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.089e-05/0.1286, allocations: 3.938 kB / 368.6 MB, free: 2.953 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.003221/0.1318, allocations: 1.25 MB / 369.8 MB, free: 1.633 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.1319, allocations: 8.031 kB / 369.8 MB, free: 1.625 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001595/0.132, allocations: 106.7 kB / 369.9 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002009/0.1322, allocations: 95.81 kB / 370 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007417/0.133, allocations: 483.4 kB / 370.5 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.882e-05/0.133, allocations: 49.69 kB / 370.5 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.1332, allocations: 64.36 kB / 370.6 MB, free: 0.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.1347, allocations: 0.6663 MB / 371.3 MB, free: 124 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.1348, allocations: 0 / 371.3 MB, free: 124 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.202e-05/0.1348, allocations: 24 kB / 371.3 MB, free: 100 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.1349, allocations: 16 kB / 371.3 MB, free: 84 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.171/0.3059, allocations: 0.6901 MB / 372 MB, free: 20.29 MB / 302.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.005629/0.3116, allocations: 2.379 MB / 374.4 MB, free: 19.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002261/0.3138, allocations: 0.5832 MB / 375 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001222/0.3151, allocations: 332.2 kB / 375.3 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.709e-05/0.3152, allocations: 13.75 kB / 375.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00133/0.3165, allocations: 426.2 kB / 375.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 4.759e-06/0.3165, allocations: 1.469 kB / 375.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.0694/0.3859, allocations: 15.44 MB / 391.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.386, allocations: 145.3 kB / 391.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005617/0.3866, allocations: 0.5155 MB / 391.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001253/0.3867, allocations: 43.08 kB / 391.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001964/0.3869, allocations: 386.4 kB / 392.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.3871, allocations: 313.3 kB / 392.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003239/0.3875, allocations: 190.5 kB / 392.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.781e-05/0.3876, allocations: 382.8 kB / 393.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001852/0.3894, allocations: 0.7283 MB / 393.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001912/0.3914, allocations: 0.9512 MB / 394.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003627/0.395, allocations: 1.693 MB / 396.5 MB, free: 7.926 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.395, allocations: 0 / 396.5 MB, free: 7.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02171/0.4167, allocations: 5.376 MB / 401.8 MB, free: 2.523 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.208e-05/0.4168, allocations: 63.41 kB / 401.9 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.4169, allocations: 8 kB / 401.9 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03447/0.4513, allocations: 6.848 MB / 408.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007761/0.4522, allocations: 147.8 kB / 408.9 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007203/0.4594, allocations: 3.168 MB / 412.1 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/0.4611, allocations: 179.8 kB / 412.3 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.4613, allocations: 48.47 kB / 412.3 MB, free: 7.996 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (54): * Single equations (assignments): 50 * 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.000514/0.4618, allocations: 229.6 kB / 412.5 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/0.4621, allocations: 79.06 kB / 412.6 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02271/0.4848, allocations: 5.113 MB / 417.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-05/0.4849, allocations: 12 kB / 417.7 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.4849, allocations: 0 / 417.7 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.962e-05/0.4849, allocations: 3.984 kB / 417.7 MB, free: 2.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001815/0.4867, allocations: 1.099 MB / 418.8 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.4868, allocations: 0 / 418.8 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005673/0.4873, allocations: 99.81 kB / 418.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03438/0.5217, allocations: 6.8 MB / 425.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002084/0.522, allocations: 28.83 kB / 425.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006067/0.5281, allocations: 3.037 MB / 428.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5281, allocations: 0 / 428.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02523/0.5533, allocations: 5.982 MB / 434.8 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002961/0.5536, allocations: 148.1 kB / 434.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.5539, allocations: 27.83 kB / 434.9 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.5553, allocations: 175.8 kB / 435.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002573/0.5556, allocations: 92.88 kB / 435.2 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.644e-05/0.5557, allocations: 35.97 kB / 435.2 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000428/0.5561, allocations: 354.8 kB / 435.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5562, allocations: 0 / 435.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007931/0.557, allocations: 256 kB / 435.8 MB, free: 316 kB / 334.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.02521/0.5822, allocations: 6.575 MB / 442.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007279/0.5895, allocations: 2.196 MB / 444.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.5895, allocations: 0 / 444.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00361/0.5931, allocations: 1.093 MB / 445.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008645/0.594, allocations: 133.3 kB / 445.8 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05631/0.6504, allocations: 16.2 MB / 462 MB, free: 5.758 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004999/0.6509, allocations: 0.9507 MB / 463 MB, free: 4.777 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000337/0.6512, allocations: 58.27 kB / 463 MB, free: 4.719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003488/0.6516, allocations: 277.4 kB / 463.3 MB, free: 4.449 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.6516, allocations: 0 / 463.3 MB, free: 4.449 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05886/0.7105, allocations: 29.23 MB / 492.5 MB, free: 7.438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.66, allocations: 16.34 kB / 492.6 MB, free: 7.422 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches