Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.001036/0.001036, allocations: 196 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 47.86 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2866, allocations: 49.44 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005874/0.2925, allocations: 4.942 MB / 405.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.295, allocations: 1.268 MB / 406.5 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003654/0.2953, allocations: 12 kB / 406.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003455/0.2957, allocations: 134.6 kB / 406.6 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004995/0.2962, allocations: 257.7 kB / 406.9 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006678/0.2969, allocations: 311.5 kB / 407.2 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009318/0.2979, allocations: 1.107 MB / 408.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000357/0.2982, allocations: 258.5 kB / 408.5 MB, free: 484 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004262/0.2987, allocations: 422.5 kB / 408.9 MB, free: 60 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000494/0.2992, allocations: 470 kB / 409.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.2993, allocations: 88 kB / 409.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001756/0.2995, allocations: 108 kB / 409.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.2996, allocations: 187.3 kB / 409.8 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003643/0.3, allocations: 453.8 kB / 410.2 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.301, allocations: 1.011 MB / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3011, allocations: 4 kB / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3011, allocations: 0 / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.3011, allocations: 0 / 411.2 MB, free: 13.76 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.002487/0.3036, allocations: 1.281 MB / 412.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.3036, allocations: 12.03 kB / 412.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001332/0.3038, allocations: 110.6 kB / 412.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.3039, allocations: 96.38 kB / 412.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006957/0.3046, allocations: 484 kB / 413.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.732e-05/0.3047, allocations: 53.62 kB / 413.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.3048, allocations: 76.36 kB / 413.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.3062, allocations: 0.6507 MB / 414 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.3062, allocations: 0 / 414 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.506e-05/0.3063, allocations: 28 kB / 414 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.3063, allocations: 12 kB / 414 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.3079, allocations: 0.6961 MB / 414.7 MB, free: 10.16 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.003766/0.3117, allocations: 2.39 MB / 417.1 MB, free: 7.613 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001466/0.3132, allocations: 0.5893 MB / 417.7 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007236/0.3139, allocations: 326 kB / 418 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.623e-05/0.314, allocations: 8.438 kB / 418 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009598/0.315, allocations: 433.3 kB / 418.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 1.823e-06/0.315, allocations: 0 / 418.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06648/0.3815, allocations: 15.44 MB / 433.9 MB, free: 6.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.3816, allocations: 141.5 kB / 434 MB, free: 6.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006624/0.3823, allocations: 0.5147 MB / 434.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001804/0.3825, allocations: 49.7 kB / 434.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002697/0.3827, allocations: 388.7 kB / 435 MB, free: 5.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003022/0.3831, allocations: 329.2 kB / 435.3 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003684/0.3834, allocations: 182.6 kB / 435.5 MB, free: 5.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.3836, allocations: 394.7 kB / 435.8 MB, free: 4.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001977/0.3856, allocations: 0.7205 MB / 436.6 MB, free: 3.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002136/0.3877, allocations: 0.9589 MB / 437.5 MB, free: 2.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004001/0.3917, allocations: 1.701 MB / 439.2 MB, free: 1.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3918, allocations: 0 / 439.2 MB, free: 1.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02218/0.4139, allocations: 5.371 MB / 444.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.473e-05/0.4141, allocations: 67.39 kB / 444.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.4141, allocations: 8 kB / 444.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0324/0.4465, allocations: 6.849 MB / 451.5 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007175/0.4472, allocations: 151.7 kB / 451.7 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006559/0.4538, allocations: 3.161 MB / 454.8 MB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.4554, allocations: 175.9 kB / 455 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.4555, allocations: 55.91 kB / 455.1 MB, free: 1.156 MB / 366.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.0004208/0.456, allocations: 217.7 kB / 455.3 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.4561, allocations: 83.48 kB / 455.3 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02099/0.4771, allocations: 5.111 MB / 460.5 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.736e-05/0.4772, allocations: 8 kB / 460.5 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.4772, allocations: 0 / 460.5 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.098e-05/0.4772, allocations: 3.984 kB / 460.5 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/0.4787, allocations: 1.128 MB / 461.6 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.4787, allocations: 3.938 kB / 461.6 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005604/0.4793, allocations: 87.89 kB / 461.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03241/0.5117, allocations: 6.797 MB / 468.5 MB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001689/0.5119, allocations: 23.98 kB / 468.5 MB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005618/0.5175, allocations: 3.056 MB / 471.6 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.5176, allocations: 4 kB / 471.6 MB, free: 500 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02347/0.541, allocations: 5.98 MB / 477.5 MB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002367/0.5413, allocations: 152.6 kB / 477.7 MB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.5415, allocations: 27.94 kB / 477.7 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001446/0.5429, allocations: 167.8 kB / 477.9 MB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000251/0.5432, allocations: 96.88 kB / 478 MB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.129e-05/0.5433, allocations: 31.97 kB / 478 MB, free: 9.992 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00044/0.5438, allocations: 354.8 kB / 478.4 MB, free: 9.645 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5438, allocations: 0 / 478.4 MB, free: 9.645 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008001/0.5446, allocations: 256 kB / 478.6 MB, free: 9.395 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.02417/0.5688, allocations: 6.585 MB / 485.2 MB, free: 2.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006856/0.5757, allocations: 2.184 MB / 487.4 MB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.5757, allocations: 0 / 487.4 MB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003535/0.5792, allocations: 1.094 MB / 488.5 MB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008387/0.5801, allocations: 138.4 kB / 488.6 MB, free: 15.33 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05433/0.6344, allocations: 15.98 MB / 0.4928 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004678/0.635, allocations: 0.9468 MB / 0.4937 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002972/0.6353, allocations: 54.28 kB / 0.4937 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.6356, allocations: 275.3 kB / 0.494 GB, free: 13.73 MB / 430.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6356, allocations: 4 kB / 0.494 GB, free: 13.72 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05653/0.6922, allocations: 29.54 MB / 0.5228 GB, free: 436 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.78, allocations: 3.5 kB / 0.5229 GB, free: 436 kB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches