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.001143/0.001143, allocations: 94.22 kB / 16.65 MB, free: 6.586 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.001563/0.001563, allocations: 186.1 kB / 17.57 MB, free: 6.199 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.435/1.435, allocations: 223.3 MB / 241.6 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004097/0.0004097, allocations: 4.656 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1226, allocations: 50.41 MB / 351.9 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006066/0.1287, allocations: 4.535 MB / 356.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003283/0.1321, allocations: 1.264 MB / 357.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008738/0.133, allocations: 12 kB / 357.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005208/0.1335, allocations: 87.23 kB / 357.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/0.1347, allocations: 230.1 kB / 358.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.1357, allocations: 259.7 kB / 358.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001663/0.1374, allocations: 1.048 MB / 359.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004143/0.1378, allocations: 223.4 kB / 359.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000493/0.1383, allocations: 362.5 kB / 359.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004947/0.1388, allocations: 418.1 kB / 360.3 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.298e-05/0.1389, allocations: 47.98 kB / 360.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/0.1391, allocations: 63.98 kB / 360.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.1393, allocations: 151.3 kB / 360.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003824/0.1396, allocations: 419.5 kB / 361 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008716/0.1405, allocations: 0.9419 MB / 361.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1405, allocations: 0 / 361.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1406, allocations: 0 / 361.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.1406, allocations: 4 kB / 362 MB, free: 9.52 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.002302/0.1429, allocations: 1.149 MB / 363.1 MB, free: 8.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.1429, allocations: 8.031 kB / 363.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001311/0.1431, allocations: 110.6 kB / 363.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.1432, allocations: 95.81 kB / 363.3 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000624/0.1439, allocations: 483.5 kB / 363.8 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.197e-05/0.1439, allocations: 45.69 kB / 363.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.144, allocations: 68.28 kB / 363.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.1455, allocations: 0.6897 MB / 364.6 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.1455, allocations: 0 / 364.6 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.12e-05/0.1456, allocations: 28 kB / 364.6 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.1456, allocations: 16 kB / 364.6 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.1474, allocations: 0.7585 MB / 365.4 MB, free: 5.957 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.003946/0.1513, allocations: 2.429 MB / 367.8 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.1529, allocations: 0.6335 MB / 368.4 MB, free: 2.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007856/0.1537, allocations: 362 kB / 368.8 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.879e-05/0.1538, allocations: 12.42 kB / 368.8 MB, free: 2.363 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.1548, allocations: 453.4 kB / 369.3 MB, free: 1.895 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.906e-06/0.1548, allocations: 3.938 kB / 369.3 MB, free: 1.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.266/0.4208, allocations: 16.73 MB / 386 MB, free: 21.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.488e-05/0.4209, allocations: 145.1 kB / 386.1 MB, free: 21.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007688/0.4217, allocations: 0.5211 MB / 386.7 MB, free: 21.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002047/0.4219, allocations: 42.73 kB / 386.7 MB, free: 21.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002486/0.4222, allocations: 393.2 kB / 387.1 MB, free: 20.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002553/0.4224, allocations: 314.3 kB / 387.4 MB, free: 20.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.4226, allocations: 86.17 kB / 387.5 MB, free: 20.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.4227, allocations: 388.9 kB / 387.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001933/0.4246, allocations: 0.7943 MB / 388.6 MB, free: 19.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001963/0.4266, allocations: 1.035 MB / 389.7 MB, free: 19.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003744/0.4304, allocations: 1.849 MB / 391.5 MB, free: 17.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.4304, allocations: 0 / 391.5 MB, free: 17.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02261/0.453, allocations: 5.742 MB / 397.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.266e-05/0.4531, allocations: 74.14 kB / 397.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.327e-05/0.4532, allocations: 8.875 kB / 397.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03311/0.4863, allocations: 7.321 MB / 404.7 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007177/0.487, allocations: 183.7 kB / 404.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006088/0.4931, allocations: 3.228 MB / 408.1 MB, free: 448 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.4949, allocations: 227.8 kB / 408.3 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.842e-05/0.495, allocations: 48.91 kB / 408.4 MB, free: 172 kB / 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.000487/0.4955, allocations: 218.8 kB / 408.6 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.4957, allocations: 79.06 kB / 408.6 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02395/0.5196, allocations: 5.476 MB / 414.1 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.748e-05/0.5197, allocations: 15.89 kB / 414.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.5197, allocations: 0 / 414.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-05/0.5197, allocations: 7.922 kB / 414.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001771/0.5215, allocations: 1.111 MB / 415.3 MB, free: 9.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.5215, allocations: 0 / 415.3 MB, free: 9.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005822/0.5221, allocations: 123.9 kB / 415.4 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03597/0.5581, allocations: 7.288 MB / 422.7 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002627/0.5584, allocations: 27.97 kB / 422.7 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006696/0.5651, allocations: 3.089 MB / 425.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.5652, allocations: 3.938 kB / 425.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02762/0.5928, allocations: 6.436 MB / 432.2 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004371/0.5933, allocations: 144.2 kB / 432.4 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003976/0.5937, allocations: 20 kB / 432.4 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001773/0.5955, allocations: 219.8 kB / 432.6 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003424/0.5959, allocations: 92.86 kB / 432.7 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.596, allocations: 35.97 kB / 432.7 MB, free: 7.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005645/0.5966, allocations: 354.8 kB / 433.1 MB, free: 7.316 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5966, allocations: 0 / 433.1 MB, free: 7.316 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001093/0.5977, allocations: 261.2 kB / 433.3 MB, free: 7.062 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.02675/0.6245, allocations: 7.005 MB / 440.3 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007396/0.6319, allocations: 2.344 MB / 442.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/0.6319, allocations: 448 / 442.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003771/0.6357, allocations: 1.16 MB / 443.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.6368, allocations: 121.4 kB / 444 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06068/0.6975, allocations: 17.42 MB / 461.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006501/0.6982, allocations: 0.9537 MB / 462.3 MB, free: 9.699 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004452/0.6987, allocations: 54.28 kB / 462.4 MB, free: 9.645 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004395/0.6991, allocations: 267.3 kB / 462.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of SimCode: time 1.963e-06/0.6991, allocations: 0 / 462.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05561/0.7548, allocations: 27.06 MB / 489.7 MB, free: 14.6 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002178/0.755, allocations: 234.4 kB / 489.9 MB, free: 14.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.798/3.553, allocations: 3.938 kB / 489.9 MB, free: 14.34 MB / 398.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