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.001088/0.001088, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001178/0.001178, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 59.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2776, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005607/0.2833, allocations: 4.965 MB / 413.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.2857, allocations: 1.287 MB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003752/0.2861, allocations: 11.94 kB / 415.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003066/0.2864, allocations: 126.7 kB / 415.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004846/0.287, allocations: 261.6 kB / 415.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000688/0.2877, allocations: 315.5 kB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00103/0.2887, allocations: 1.095 MB / 416.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003663/0.2891, allocations: 262.5 kB / 417.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004592/0.2895, allocations: 422.5 kB / 417.5 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005021/0.2901, allocations: 470 kB / 418 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.2902, allocations: 92 kB / 418.1 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002157/0.2904, allocations: 104 kB / 418.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.2906, allocations: 199.3 kB / 418.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003894/0.291, allocations: 445.8 kB / 418.8 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.2921, allocations: 1.014 MB / 419.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.2922, allocations: 0 / 419.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2922, allocations: 3.938 kB / 419.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.342e-05/0.2922, allocations: 0 / 419.8 MB, free: 6.453 MB / 334.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.002481/0.2947, allocations: 1.277 MB / 421.1 MB, free: 5.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.2947, allocations: 12.03 kB / 421.1 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.2949, allocations: 106.7 kB / 421.2 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.295, allocations: 100.3 kB / 421.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006792/0.2957, allocations: 495.9 kB / 421.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.2957, allocations: 45.69 kB / 421.8 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.2959, allocations: 68.33 kB / 421.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.2972, allocations: 0.6546 MB / 422.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.2972, allocations: 3.984 kB / 422.5 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.805e-05/0.2973, allocations: 28 kB / 422.6 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.2973, allocations: 16 kB / 422.6 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.2989, allocations: 0.6961 MB / 423.3 MB, free: 2.844 MB / 334.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.003931/0.3029, allocations: 2.371 MB / 425.7 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001402/0.3043, allocations: 0.5826 MB / 426.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007372/0.3051, allocations: 333.9 kB / 426.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.751e-05/0.3051, allocations: 12.42 kB / 426.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009227/0.3061, allocations: 425.4 kB / 427 MB, free: 14.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 4.488e-06/0.3061, allocations: 0 / 427 MB, free: 14.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06755/0.3736, allocations: 15.44 MB / 442.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.3738, allocations: 145.5 kB / 442.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006267/0.3744, allocations: 0.5147 MB / 443.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001692/0.3746, allocations: 49.69 kB / 443.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003053/0.3749, allocations: 388.7 kB / 443.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003328/0.3752, allocations: 333.2 kB / 443.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004551/0.3757, allocations: 182.6 kB / 444 MB, free: 13.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.3759, allocations: 390.7 kB / 444.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001986/0.3779, allocations: 0.7166 MB / 445.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002082/0.38, allocations: 0.9668 MB / 446.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004035/0.384, allocations: 1.697 MB / 447.8 MB, free: 9.805 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.3841, allocations: 4 kB / 447.8 MB, free: 9.801 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02296/0.407, allocations: 5.378 MB / 453.2 MB, free: 4.391 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.345e-05/0.4072, allocations: 67.41 kB / 453.2 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.4072, allocations: 4 kB / 453.2 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03353/0.4407, allocations: 6.844 MB / 460.1 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006875/0.4414, allocations: 147.7 kB / 460.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006501/0.4479, allocations: 3.161 MB / 463.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.4496, allocations: 171.9 kB / 463.6 MB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.4497, allocations: 55.91 kB / 463.6 MB, free: 9.867 MB / 382.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.0004275/0.4502, allocations: 237.6 kB / 463.8 MB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.4504, allocations: 83.48 kB / 463.9 MB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02164/0.472, allocations: 5.126 MB / 469 MB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.4721, allocations: 8 kB / 469.1 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.4721, allocations: 0 / 469.1 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.336e-05/0.4721, allocations: 3.984 kB / 469.1 MB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/0.4735, allocations: 1.108 MB / 470.2 MB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.4735, allocations: 0 / 470.2 MB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005249/0.4741, allocations: 95.88 kB / 470.3 MB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03225/0.5063, allocations: 6.789 MB / 477 MB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000223/0.5066, allocations: 31.91 kB / 477.1 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005634/0.5123, allocations: 3.033 MB / 480.1 MB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.5123, allocations: 0 / 480.1 MB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02298/0.5353, allocations: 5.999 MB / 486.1 MB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002881/0.5356, allocations: 152.5 kB / 486.3 MB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/0.5359, allocations: 20 kB / 486.3 MB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/0.5372, allocations: 171.8 kB / 486.4 MB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.5375, allocations: 96.81 kB / 486.5 MB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.729e-05/0.5376, allocations: 35.97 kB / 486.6 MB, free: 2.695 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004542/0.5381, allocations: 354.8 kB / 486.9 MB, free: 2.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5381, allocations: 0 / 486.9 MB, free: 2.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007692/0.5388, allocations: 256 kB / 487.2 MB, free: 2.098 MB / 398.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.02434/0.5632, allocations: 6.571 MB / 493.7 MB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006736/0.57, allocations: 2.184 MB / 495.9 MB, free: 9.273 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/0.57, allocations: 4 kB / 495.9 MB, free: 9.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003408/0.5735, allocations: 1.094 MB / 497 MB, free: 8.176 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000761/0.5743, allocations: 130.2 kB / 497.2 MB, free: 8.047 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05938/0.6336, allocations: 15.97 MB / 0.5011 GB, free: 7.746 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006195/0.6343, allocations: 0.9468 MB / 0.502 GB, free: 6.773 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002927/0.6346, allocations: 58.27 kB / 0.5021 GB, free: 6.715 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000339/0.635, allocations: 275.3 kB / 0.5023 GB, free: 6.445 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.635, allocations: 0 / 0.5023 GB, free: 6.445 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06379/0.6988, allocations: 29.58 MB / 0.5312 GB, free: 9.098 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.74, allocations: 16.3 kB / 0.5312 GB, free: 9.082 MB / 462.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