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.001361/0.001361, allocations: 113.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001536/0.001536, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 59.44 kB / 306.6 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1386, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.007793/0.1465, allocations: 4.984 MB / 362.1 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003411/0.1499, allocations: 1.272 MB / 363.3 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009514/0.1509, allocations: 11.94 kB / 363.4 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000593/0.1516, allocations: 99.22 kB / 363.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001022/0.1526, allocations: 218.2 kB / 363.7 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.1537, allocations: 263.7 kB / 363.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001776/0.1555, allocations: 1.099 MB / 365 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005902/0.1561, allocations: 262.5 kB / 365.3 MB, free: 6.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008421/0.157, allocations: 418.5 kB / 365.7 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000874/0.1579, allocations: 466 kB / 366.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002459/0.1581, allocations: 88 kB / 366.2 MB, free: 5.102 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004211/0.1586, allocations: 116 kB / 366.3 MB, free: 4.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002243/0.1588, allocations: 191.3 kB / 366.5 MB, free: 4.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006882/0.1595, allocations: 449.8 kB / 367 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001299/0.1608, allocations: 0.9968 MB / 368 MB, free: 3.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.1608, allocations: 4 kB / 368 MB, free: 3.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1608, allocations: 0 / 368 MB, free: 3.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.266e-05/0.1609, allocations: 3.938 kB / 368 MB, free: 3.352 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.003184/0.1641, allocations: 1.262 MB / 369.2 MB, free: 2.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.1641, allocations: 8.031 kB / 369.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001849/0.1643, allocations: 106.7 kB / 369.3 MB, free: 1.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002262/0.1645, allocations: 95.81 kB / 369.4 MB, free: 1.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008073/0.1654, allocations: 483.4 kB / 369.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.897e-05/0.1654, allocations: 57.67 kB / 370 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.1656, allocations: 60.38 kB / 370 MB, free: 1.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.1671, allocations: 0.6624 MB / 370.7 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.1672, allocations: 0 / 370.7 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.536e-05/0.1672, allocations: 24 kB / 370.7 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.1673, allocations: 16 kB / 370.7 MB, free: 480 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2719/0.4392, allocations: 0.6912 MB / 371.4 MB, free: 20.15 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.006069/0.4453, allocations: 2.369 MB / 373.8 MB, free: 19.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002224/0.4476, allocations: 0.5883 MB / 374.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008056/0.4484, allocations: 329.8 kB / 374.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.926e-05/0.4485, allocations: 17.86 kB / 374.7 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.4496, allocations: 421.5 kB / 375.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.216e-06/0.4496, allocations: 1.188 kB / 375.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.1033/0.5529, allocations: 15.44 MB / 390.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.5531, allocations: 145.3 kB / 390.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009198/0.5541, allocations: 0.5166 MB / 391.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003007/0.5544, allocations: 46.27 kB / 391.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003433/0.5547, allocations: 386.7 kB / 391.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004436/0.5552, allocations: 321 kB / 392 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005559/0.5558, allocations: 181.3 kB / 392.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.5559, allocations: 387.3 kB / 392.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/0.5578, allocations: 0.7251 MB / 393.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001994/0.5598, allocations: 0.9512 MB / 394.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003725/0.5636, allocations: 1.689 MB / 395.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.5636, allocations: 0 / 395.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02276/0.5864, allocations: 5.381 MB / 401.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.749e-05/0.5865, allocations: 59.41 kB / 401.3 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.5865, allocations: 12.12 kB / 401.3 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03534/0.6219, allocations: 6.84 MB / 408.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008719/0.6228, allocations: 163.3 kB / 408.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00818/0.6311, allocations: 3.161 MB / 411.5 MB, free: 8.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/0.6331, allocations: 183.8 kB / 411.7 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001917/0.6333, allocations: 47.97 kB / 411.7 MB, free: 8.293 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.0005973/0.6339, allocations: 231.2 kB / 411.9 MB, free: 8.059 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002591/0.6342, allocations: 83 kB / 412 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02478/0.659, allocations: 5.107 MB / 417.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.774e-05/0.6591, allocations: 9.219 kB / 417.1 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.6591, allocations: 0 / 417.1 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.383e-05/0.6591, allocations: 3.984 kB / 417.1 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002209/0.6613, allocations: 1.105 MB / 418.2 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/0.6614, allocations: 0.8438 kB / 418.2 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000603/0.662, allocations: 95.83 kB / 418.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03576/0.6978, allocations: 6.796 MB / 425.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000292/0.6981, allocations: 31.92 kB / 425.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006532/0.7047, allocations: 3.04 MB / 428.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.7047, allocations: 0 / 428.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02579/0.7305, allocations: 5.99 MB / 434.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003816/0.7309, allocations: 140.2 kB / 434.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004286/0.7314, allocations: 27.98 kB / 434.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/0.7331, allocations: 171.7 kB / 434.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004051/0.7335, allocations: 96.86 kB / 434.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/0.7337, allocations: 27.98 kB / 434.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006251/0.7343, allocations: 354.8 kB / 435 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7343, allocations: 0 / 435 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001219/0.7356, allocations: 262.7 kB / 435.3 MB, free: 0.6094 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.02629/0.7619, allocations: 6.572 MB / 441.8 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007612/0.7695, allocations: 2.193 MB / 444 MB, free: 7.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/0.7696, allocations: 5.375 kB / 444 MB, free: 7.789 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003659/0.7732, allocations: 1.092 MB / 445.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.7743, allocations: 137.7 kB / 445.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05928/0.8336, allocations: 16.53 MB / 461.8 MB, free: 5.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006035/0.8342, allocations: 0.9507 MB / 462.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004455/0.8347, allocations: 58.27 kB / 462.8 MB, free: 4.695 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004003/0.8351, allocations: 279.3 kB / 463.1 MB, free: 4.422 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.8351, allocations: 4 kB / 463.1 MB, free: 4.418 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05453/0.8897, allocations: 28.7 MB / 491.8 MB, free: 7.988 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/0.8899, allocations: 241.5 kB / 492 MB, free: 7.734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.165/4.055, allocations: 0 / 492 MB, free: 7.734 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