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.001773/0.001773, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.001886/0.001886, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.556/1.556, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 47.27 kB / 300.1 MB, free: 6.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1047, allocations: 49.44 MB / 349.5 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005887/0.1106, allocations: 4.953 MB / 354.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003214/0.1139, allocations: 1.284 MB / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007778/0.1147, allocations: 15.94 kB / 355.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004852/0.1152, allocations: 83.3 kB / 355.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001013/0.1163, allocations: 218.1 kB / 356.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.1173, allocations: 271.6 kB / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002014/0.1194, allocations: 1.033 MB / 357.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006429/0.12, allocations: 227.4 kB / 357.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001083/0.1211, allocations: 382.5 kB / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001196/0.1224, allocations: 438 kB / 358.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003774/0.1227, allocations: 52 kB / 358.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004302/0.1232, allocations: 83.91 kB / 358.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002111/0.1234, allocations: 151.4 kB / 358.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006518/0.1241, allocations: 421.8 kB / 359.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001222/0.1253, allocations: 0.9616 MB / 360 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.1253, allocations: 0 / 360 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1253, allocations: 0 / 360 MB, free: 10.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.1254, allocations: 0 / 360 MB, free: 10.13 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.002687/0.128, allocations: 1.258 MB / 361.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.1281, allocations: 8.031 kB / 361.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/0.1282, allocations: 106.7 kB / 361.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.1284, allocations: 99.75 kB / 361.5 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006927/0.1291, allocations: 479.5 kB / 362 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.654e-05/0.1292, allocations: 49.69 kB / 362 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.1293, allocations: 64.36 kB / 362.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.1309, allocations: 0.6624 MB / 362.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.1309, allocations: 0 / 362.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.131, allocations: 24 kB / 362.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.384e-05/0.131, allocations: 16 kB / 362.8 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.1328, allocations: 0.6961 MB / 363.5 MB, free: 6.559 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.004243/0.137, allocations: 2.39 MB / 365.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.1385, allocations: 0.5855 MB / 366.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000716/0.1393, allocations: 330 kB / 366.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.449e-05/0.1393, allocations: 4.438 kB / 366.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.1404, allocations: 433.4 kB / 367.2 MB, free: 2.645 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.114e-06/0.1404, allocations: 0 / 367.2 MB, free: 2.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2584/0.3988, allocations: 15.41 MB / 382.6 MB, free: 22.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001586/0.399, allocations: 144.5 kB / 382.7 MB, free: 22.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.4002, allocations: 0.5199 MB / 383.3 MB, free: 22.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003242/0.4005, allocations: 53.5 kB / 383.3 MB, free: 22.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000374/0.4009, allocations: 375.2 kB / 383.7 MB, free: 21.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003528/0.4013, allocations: 317.4 kB / 384 MB, free: 21.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004377/0.4017, allocations: 188.4 kB / 384.2 MB, free: 21.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.402, allocations: 386.4 kB / 384.6 MB, free: 21.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002178/0.4041, allocations: 0.7198 MB / 385.3 MB, free: 20.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002382/0.4065, allocations: 0.9585 MB / 386.2 MB, free: 20.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004237/0.4108, allocations: 1.691 MB / 387.9 MB, free: 19.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.329e-05/0.4108, allocations: 3.562 kB / 387.9 MB, free: 19.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02169/0.4325, allocations: 5.376 MB / 393.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.525e-05/0.4327, allocations: 67.39 kB / 393.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/0.4327, allocations: 8 kB / 393.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03229/0.465, allocations: 6.842 MB / 400.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008147/0.4659, allocations: 147.7 kB / 400.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006537/0.4724, allocations: 3.163 MB / 403.5 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/0.4744, allocations: 189.4 kB / 403.7 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.4745, allocations: 47.97 kB / 403.8 MB, free: 4.379 MB / 302.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.0004455/0.4749, allocations: 229.6 kB / 404 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.4751, allocations: 79.06 kB / 404.1 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01983/0.4949, allocations: 5.103 MB / 409.2 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/0.495, allocations: 12.88 kB / 409.2 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.495, allocations: 0 / 409.2 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.227e-05/0.4951, allocations: 6.844 kB / 409.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/0.4965, allocations: 1.102 MB / 410.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.4965, allocations: 0 / 410.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005052/0.4971, allocations: 99.88 kB / 410.4 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03416/0.5312, allocations: 6.807 MB / 417.2 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002783/0.5316, allocations: 27.98 kB / 417.2 MB, free: 6.867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0066/0.5382, allocations: 3.04 MB / 420.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.5382, allocations: 4 kB / 420.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02555/0.5638, allocations: 5.987 MB / 426.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000384/0.5642, allocations: 148.1 kB / 426.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003345/0.5646, allocations: 24 kB / 426.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/0.5662, allocations: 171.8 kB / 426.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004143/0.5666, allocations: 96.86 kB / 426.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/0.5668, allocations: 31.97 kB / 426.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005119/0.5673, allocations: 354.8 kB / 427.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5673, allocations: 0 / 427.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001125/0.5684, allocations: 261.5 kB / 427.3 MB, free: 12.68 MB / 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.02593/0.5944, allocations: 6.554 MB / 433.9 MB, free: 6.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00736/0.6018, allocations: 2.18 MB / 436 MB, free: 3.898 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/0.6018, allocations: 4 kB / 436.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003774/0.6056, allocations: 1.082 MB / 437.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.6069, allocations: 126.4 kB / 437.3 MB, free: 2.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06305/0.6699, allocations: 16.53 MB / 453.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007066/0.6707, allocations: 0.9471 MB / 454.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004693/0.6712, allocations: 62.92 kB / 454.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000444/0.6717, allocations: 271.3 kB / 455.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.6717, allocations: 3.391 kB / 455.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06445/0.7361, allocations: 27.38 MB / 482.4 MB, free: 5.445 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002625/0.7364, allocations: 243.2 kB / 482.7 MB, free: 5.184 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.809/3.546, allocations: 0 / 482.7 MB, free: 5.184 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 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.mat","/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