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.001255/0.001255, allocations: 116.5 kB / 16.63 MB, free: 6.945 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.001259/0.001259, allocations: 197.8 kB / 17.55 MB, free: 6.043 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.506/1.506, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 42.88 kB / 300.2 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1189, allocations: 49.46 MB / 349.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.008057/0.127, allocations: 4.953 MB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003632/0.1307, allocations: 1.252 MB / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009421/0.1317, allocations: 15.94 kB / 355.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005621/0.1323, allocations: 87.28 kB / 356 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009783/0.1333, allocations: 226.1 kB / 356.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009914/0.1343, allocations: 271.7 kB / 356.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001489/0.1358, allocations: 1.099 MB / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004534/0.1363, allocations: 254.5 kB / 357.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005297/0.1368, allocations: 422.5 kB / 358.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004996/0.1373, allocations: 470 kB / 358.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.1375, allocations: 91.94 kB / 358.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002221/0.1377, allocations: 116 kB / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.1379, allocations: 187.3 kB / 359.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004118/0.1383, allocations: 453.8 kB / 359.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.1393, allocations: 0.9968 MB / 360.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1393, allocations: 0 / 360.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1393, allocations: 0 / 360.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.1394, allocations: 0 / 360.5 MB, free: 9.516 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.002733/0.1421, allocations: 1.253 MB / 361.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.1422, allocations: 12.03 kB / 361.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.1423, allocations: 114.6 kB / 361.9 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.1425, allocations: 91.81 kB / 362 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006847/0.1432, allocations: 487.5 kB / 362.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.885e-05/0.1433, allocations: 49.69 kB / 362.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.1434, allocations: 68.31 kB / 362.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.1449, allocations: 0.6546 MB / 363.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.1449, allocations: 0 / 363.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.252e-05/0.145, allocations: 28 kB / 363.3 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.145, allocations: 12 kB / 363.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.1467, allocations: 0.6961 MB / 364 MB, free: 5.945 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.004276/0.151, allocations: 2.39 MB / 366.4 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001476/0.1525, allocations: 0.5866 MB / 366.9 MB, free: 2.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007545/0.1533, allocations: 330 kB / 367.3 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.437e-05/0.1533, allocations: 12.42 kB / 367.3 MB, free: 2.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001101/0.1544, allocations: 425.4 kB / 367.7 MB, free: 2.023 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.925e-06/0.1545, allocations: 0 / 367.7 MB, free: 2.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.3039/0.4584, allocations: 15.4 MB / 383.1 MB, free: 22.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.845e-05/0.4585, allocations: 149.2 kB / 383.2 MB, free: 22.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007526/0.4593, allocations: 0.5117 MB / 383.8 MB, free: 21.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002504/0.4596, allocations: 41.67 kB / 383.8 MB, free: 21.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002643/0.4598, allocations: 393.1 kB / 384.2 MB, free: 21.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003947/0.4602, allocations: 322.2 kB / 384.5 MB, free: 21.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004482/0.4607, allocations: 183 kB / 384.7 MB, free: 21.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.4609, allocations: 391.6 kB / 385.1 MB, free: 20.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002185/0.4631, allocations: 0.7186 MB / 385.8 MB, free: 20.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00242/0.4655, allocations: 0.9516 MB / 386.7 MB, free: 19.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004085/0.4696, allocations: 1.695 MB / 388.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.846e-05/0.4697, allocations: 1.312 kB / 388.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02338/0.4931, allocations: 5.383 MB / 393.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.4932, allocations: 67.41 kB / 393.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.523e-05/0.4933, allocations: 8.125 kB / 393.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03285/0.5261, allocations: 6.839 MB / 400.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006591/0.5268, allocations: 155 kB / 400.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006438/0.5333, allocations: 3.163 MB / 404 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.5351, allocations: 183.8 kB / 404.2 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001819/0.5353, allocations: 47.92 kB / 404.3 MB, free: 3.672 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.0005061/0.5358, allocations: 225.6 kB / 404.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002019/0.536, allocations: 83 kB / 404.6 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0224/0.5585, allocations: 5.104 MB / 409.7 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.453e-05/0.5585, allocations: 11.98 kB / 409.7 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.5585, allocations: 0 / 409.7 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.639e-05/0.5586, allocations: 3.984 kB / 409.7 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001775/0.5604, allocations: 1.105 MB / 410.8 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.5604, allocations: 0 / 410.8 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005753/0.561, allocations: 98.88 kB / 410.9 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0354/0.5964, allocations: 6.801 MB / 417.7 MB, free: 6.195 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003738/0.5968, allocations: 27.97 kB / 417.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006859/0.6037, allocations: 3.037 MB / 420.7 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.6038, allocations: 7.938 kB / 420.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02771/0.6315, allocations: 5.986 MB / 426.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004719/0.632, allocations: 140.2 kB / 426.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004006/0.6325, allocations: 24.05 kB / 426.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001788/0.6343, allocations: 175.2 kB / 427.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003965/0.6347, allocations: 104.8 kB / 427.2 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/0.6348, allocations: 27.98 kB / 427.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005295/0.6354, allocations: 354.8 kB / 427.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6354, allocations: 0 / 427.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00112/0.6365, allocations: 260 kB / 427.8 MB, free: 11.98 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.02687/0.6634, allocations: 6.569 MB / 434.4 MB, free: 5.391 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007255/0.6707, allocations: 2.189 MB / 436.6 MB, free: 3.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.812e-06/0.6707, allocations: 0 / 436.6 MB, free: 3.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003765/0.6745, allocations: 1.103 MB / 437.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009661/0.6755, allocations: 142.5 kB / 437.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06142/0.737, allocations: 16.52 MB / 454.3 MB, free: 1.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005962/0.7376, allocations: 0.9468 MB / 455.3 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004396/0.7381, allocations: 61.14 kB / 455.3 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004476/0.7385, allocations: 276.9 kB / 455.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7385, allocations: 0 / 455.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06059/0.7991, allocations: 28.73 MB / 484.3 MB, free: 3.371 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002478/0.7994, allocations: 246.2 kB / 484.6 MB, free: 3.109 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.949/3.748, allocations: 0 / 484.6 MB, free: 3.109 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