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.001025/0.001026, allocations: 93.84 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 203.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 227.7 MB / 246.8 MB, free: 11.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001849/0.0001849, allocations: 11.98 kB / 307.8 MB, free: 0.6953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07756/0.07776, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004009/0.0818, allocations: 4.561 MB / 363.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.08344, allocations: 1.28 MB / 365.2 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001851/0.08363, allocations: 11.94 kB / 365.2 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.08382, allocations: 95.22 kB / 365.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003583/0.08419, allocations: 218.2 kB / 365.5 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004623/0.08466, allocations: 267.6 kB / 365.8 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007833/0.08545, allocations: 1.036 MB / 366.8 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002947/0.08575, allocations: 231.4 kB / 367 MB, free: 5.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003152/0.08608, allocations: 358.5 kB / 367.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000404/0.08649, allocations: 418 kB / 367.8 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.425e-05/0.08657, allocations: 44 kB / 367.8 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.08672, allocations: 67.98 kB / 367.9 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.08684, allocations: 151.3 kB / 368.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003276/0.08717, allocations: 427.5 kB / 368.5 MB, free: 3.996 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007029/0.08788, allocations: 0.938 MB / 369.4 MB, free: 3.055 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.08789, allocations: 4 kB / 369.4 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.0879, allocations: 0 / 369.4 MB, free: 3.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.08791, allocations: 0 / 369.4 MB, free: 3.051 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.002025/0.08994, allocations: 1.149 MB / 370.6 MB, free: 1.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.08998, allocations: 12.03 kB / 370.6 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.0901, allocations: 106.7 kB / 370.7 MB, free: 1.711 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.09023, allocations: 91.81 kB / 370.8 MB, free: 1.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000522/0.09075, allocations: 483.5 kB / 371.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.887e-05/0.09081, allocations: 53.69 kB / 371.3 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.683e-05/0.09091, allocations: 68.28 kB / 371.4 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.09223, allocations: 0.6897 MB / 372.1 MB, free: 300 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.09226, allocations: 0 / 372.1 MB, free: 300 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-05/0.09233, allocations: 24 kB / 372.1 MB, free: 276 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.09235, allocations: 16 kB / 372.1 MB, free: 260 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1301/0.2225, allocations: 0.7533 MB / 372.8 MB, free: 19.19 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.003517/0.226, allocations: 2.424 MB / 375.3 MB, free: 18.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.2275, allocations: 0.6414 MB / 375.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006906/0.2282, allocations: 370.7 kB / 376.3 MB, free: 18.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.2282, allocations: 13.86 kB / 376.3 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008444/0.2291, allocations: 458.3 kB / 376.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.834e-06/0.2291, allocations: 0 / 376.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06466/0.2938, allocations: 16.76 MB / 393.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.2938, allocations: 141.5 kB / 393.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004046/0.2943, allocations: 0.5186 MB / 394.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.281e-05/0.2944, allocations: 49.69 kB / 394.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.2945, allocations: 388.1 kB / 394.6 MB, free: 10 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.2947, allocations: 314.4 kB / 394.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.2948, allocations: 85.67 kB / 395 MB, free: 9.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.314e-05/0.2949, allocations: 386.7 kB / 395.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001801/0.2967, allocations: 0.7986 MB / 396.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001818/0.2985, allocations: 1.033 MB / 397.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003509/0.302, allocations: 1.848 MB / 399 MB, free: 5.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3021, allocations: 4 kB / 399 MB, free: 5.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02106/0.3231, allocations: 5.742 MB / 404.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.262e-05/0.3232, allocations: 63.41 kB / 404.8 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.3232, allocations: 4 kB / 404.8 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03406/0.3573, allocations: 7.331 MB / 412.2 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006731/0.358, allocations: 179.8 kB / 412.3 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006312/0.3643, allocations: 3.232 MB / 415.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.3659, allocations: 223.8 kB / 415.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.366, allocations: 47.97 kB / 415.8 MB, free: 4.445 MB / 318.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.0004359/0.3664, allocations: 225.6 kB / 416.1 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.3666, allocations: 79.06 kB / 416.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02206/0.3887, allocations: 5.474 MB / 421.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.3887, allocations: 10.81 kB / 421.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.3887, allocations: 4.875 kB / 421.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.3887, allocations: 3.984 kB / 421.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00124/0.39, allocations: 1.095 MB / 422.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.39, allocations: 3.984 kB / 422.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005241/0.3905, allocations: 123.8 kB / 422.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03355/0.4241, allocations: 7.288 MB / 430.1 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/0.4242, allocations: 28.91 kB / 430.2 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005431/0.4296, allocations: 3.095 MB / 433.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4297, allocations: 0.7031 kB / 433.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02438/0.454, allocations: 6.435 MB / 439.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.4542, allocations: 140.2 kB / 439.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.4544, allocations: 20.44 kB / 439.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/0.4557, allocations: 219.8 kB / 440.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002252/0.456, allocations: 96.8 kB / 440.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.78e-05/0.4561, allocations: 31.97 kB / 440.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003648/0.4564, allocations: 358.8 kB / 440.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4564, allocations: 0 / 440.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006854/0.4571, allocations: 256 kB / 440.8 MB, free: 11.34 MB / 350.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.0251/0.4822, allocations: 7.014 MB / 447.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006941/0.4892, allocations: 2.334 MB / 450.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4892, allocations: 8.062 kB / 450.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003536/0.4928, allocations: 1.159 MB / 451.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008833/0.4937, allocations: 130.2 kB / 451.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05629/0.55, allocations: 17.41 MB / 468.8 MB, free: 14.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005451/0.5506, allocations: 0.9507 MB / 469.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003255/0.5509, allocations: 62.27 kB / 469.9 MB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003614/0.5513, allocations: 267.3 kB / 470.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.5513, allocations: 4 kB / 470.1 MB, free: 13.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04489/0.5962, allocations: 27.02 MB / 497.1 MB, free: 2.883 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002341/0.5965, allocations: 244.2 kB / 497.4 MB, free: 2.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.345/2.941, allocations: 0 / 497.4 MB, free: 2.625 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 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.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_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches