Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_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.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_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.001388/0.001387, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 68.12 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2383, allocations: 50.55 MB / 408.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006507/0.2448, allocations: 4.956 MB / 413.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002599/0.2475, allocations: 1.28 MB / 415.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003737/0.2479, allocations: 15.88 kB / 415.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003022/0.2482, allocations: 122.7 kB / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005067/0.2487, allocations: 261.6 kB / 415.5 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008244/0.2496, allocations: 307.5 kB / 415.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001678/0.2513, allocations: 1.087 MB / 416.9 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005591/0.2518, allocations: 270.5 kB / 417.1 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006517/0.2525, allocations: 418.5 kB / 417.5 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007031/0.2532, allocations: 470 kB / 418 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.2534, allocations: 91.94 kB / 418.1 MB, free: 8.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002791/0.2537, allocations: 108 kB / 418.2 MB, free: 8.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002381/0.2539, allocations: 191.3 kB / 418.4 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006102/0.2545, allocations: 445.8 kB / 418.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001541/0.2561, allocations: 1.018 MB / 419.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.2561, allocations: 0 / 419.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.021e-06/0.2561, allocations: 0 / 419.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.2562, allocations: 7.938 kB / 419.8 MB, free: 6.504 MB / 334.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.003679/0.2598, allocations: 1.281 MB / 421.1 MB, free: 5.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/0.2599, allocations: 8.031 kB / 421.1 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001781/0.2601, allocations: 106.7 kB / 421.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002535/0.2604, allocations: 100.3 kB / 421.3 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.2614, allocations: 491.9 kB / 421.8 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.514e-05/0.2615, allocations: 49.69 kB / 421.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.2617, allocations: 68.33 kB / 421.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00211/0.2638, allocations: 0.6546 MB / 422.6 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.2639, allocations: 0 / 422.6 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-05/0.264, allocations: 28 kB / 422.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.632e-05/0.264, allocations: 16 kB / 422.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002632/0.2666, allocations: 0.6922 MB / 423.3 MB, free: 2.906 MB / 334.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.005442/0.2721, allocations: 2.379 MB / 425.7 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/0.2741, allocations: 0.5855 MB / 426.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.2751, allocations: 329.9 kB / 426.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.433e-05/0.2752, allocations: 16.44 kB / 426.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001237/0.2764, allocations: 429 kB / 427 MB, free: 15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.786e-06/0.2765, allocations: 4 kB / 427 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.08782/0.3643, allocations: 15.43 MB / 442.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.3644, allocations: 145.5 kB / 442.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008092/0.3653, allocations: 0.5264 MB / 443.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001845/0.3655, allocations: 41.7 kB / 443.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.3658, allocations: 392.7 kB / 443.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003738/0.3662, allocations: 329.2 kB / 443.9 MB, free: 14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004836/0.3667, allocations: 182.6 kB / 444.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002176/0.3669, allocations: 390.7 kB / 444.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002642/0.3696, allocations: 0.7244 MB / 445.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002844/0.3724, allocations: 0.9551 MB / 446.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00544/0.3779, allocations: 1.701 MB / 447.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.3779, allocations: 4 kB / 447.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02941/0.4073, allocations: 5.378 MB / 453.2 MB, free: 4.449 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.4075, allocations: 67.41 kB / 453.3 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/0.4075, allocations: 4 kB / 453.3 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04559/0.4531, allocations: 6.829 MB / 460.1 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007699/0.454, allocations: 155.6 kB / 460.3 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006649/0.4606, allocations: 3.005 MB / 463.3 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.4624, allocations: 183.9 kB / 463.4 MB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/0.4626, allocations: 55.89 kB / 463.5 MB, free: 10.08 MB / 382.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.0004681/0.4631, allocations: 225.7 kB / 463.7 MB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.4633, allocations: 83.48 kB / 463.8 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02309/0.4864, allocations: 5.111 MB / 468.9 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.019e-05/0.4864, allocations: 8 kB / 468.9 MB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.4864, allocations: 0 / 468.9 MB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/0.4865, allocations: 4.234 kB / 468.9 MB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.4883, allocations: 1.12 MB / 470 MB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.4883, allocations: 8 kB / 470 MB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005661/0.4889, allocations: 83.89 kB / 470.1 MB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03469/0.5236, allocations: 6.781 MB / 476.9 MB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000265/0.5239, allocations: 23.98 kB / 476.9 MB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006273/0.5302, allocations: 3.033 MB / 480 MB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.5302, allocations: 0 / 480 MB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02519/0.5554, allocations: 5.999 MB / 486 MB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/0.5557, allocations: 144.5 kB / 486.1 MB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/0.5558, allocations: 23.98 kB / 486.1 MB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.5572, allocations: 167.8 kB / 486.3 MB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002574/0.5575, allocations: 92.88 kB / 486.4 MB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.205e-05/0.5576, allocations: 35.98 kB / 486.4 MB, free: 2.953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004345/0.558, allocations: 350.8 kB / 486.8 MB, free: 2.609 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.558, allocations: 7.938 kB / 486.8 MB, free: 2.602 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007164/0.5588, allocations: 260 kB / 487 MB, free: 2.348 MB / 398.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.02562/0.5844, allocations: 6.56 MB / 493.6 MB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006393/0.5908, allocations: 2.056 MB / 495.6 MB, free: 9.664 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.5909, allocations: 0 / 495.6 MB, free: 9.664 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003799/0.5947, allocations: 1.089 MB / 496.7 MB, free: 8.574 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007404/0.5954, allocations: 128.7 kB / 496.9 MB, free: 8.449 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05617/0.6516, allocations: 15.98 MB / 0.5008 GB, free: 8.141 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005907/0.6522, allocations: 0.9506 MB / 0.5017 GB, free: 7.164 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003334/0.6526, allocations: 66.19 kB / 0.5018 GB, free: 7.098 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000379/0.653, allocations: 275.3 kB / 0.5021 GB, free: 6.828 MB / 430.1 MB Notification: Performance of SimCode: time 1.373e-06/0.653, allocations: 0 / 0.5021 GB, free: 6.828 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06575/0.7188, allocations: 29.82 MB / 0.5312 GB, free: 9.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/14.1, allocations: 12.3 kB / 0.5312 GB, free: 9.219 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches