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.001189/0.001189, allocations: 104.7 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001158, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.528/1.528, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 64.08 kB / 306.6 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1054, allocations: 50.52 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00846/0.114, allocations: 4.966 MB / 362 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003373/0.1174, allocations: 1.28 MB / 363.3 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000924/0.1184, allocations: 19.88 kB / 363.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005597/0.119, allocations: 87.23 kB / 363.4 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009889/0.12, allocations: 222.2 kB / 363.6 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009738/0.121, allocations: 267.7 kB / 363.9 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001697/0.1227, allocations: 1.095 MB / 365 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004753/0.1232, allocations: 266.5 kB / 365.3 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005898/0.1238, allocations: 422.5 kB / 365.7 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004813/0.1243, allocations: 466 kB / 366.1 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.1244, allocations: 84 kB / 366.2 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001991/0.1246, allocations: 112 kB / 366.3 MB, free: 5.031 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.1248, allocations: 195.3 kB / 366.5 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003608/0.1251, allocations: 445.8 kB / 366.9 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009513/0.1261, allocations: 0.9968 MB / 367.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1261, allocations: 0 / 367.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1261, allocations: 7.938 kB / 368 MB, free: 3.395 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.1262, allocations: 0 / 368 MB, free: 3.395 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.002507/0.1287, allocations: 1.258 MB / 369.2 MB, free: 2.066 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.1287, allocations: 8.031 kB / 369.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.1289, allocations: 110.7 kB / 369.3 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.129, allocations: 99.81 kB / 369.4 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006304/0.1297, allocations: 479.4 kB / 369.9 MB, free: 1.336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.229e-05/0.1297, allocations: 45.69 kB / 369.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.1298, allocations: 64.38 kB / 370 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.1313, allocations: 0.6585 MB / 370.7 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.1313, allocations: 4 kB / 370.7 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-05/0.1314, allocations: 28 kB / 370.7 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.1314, allocations: 16 kB / 370.7 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1979/0.3293, allocations: 0.6921 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.005114/0.3345, allocations: 2.371 MB / 373.8 MB, free: 19.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.336, allocations: 0.5927 MB / 374.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007712/0.3368, allocations: 328.9 kB / 374.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.912e-05/0.3369, allocations: 16.52 kB / 374.7 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/0.3381, allocations: 421.5 kB / 375.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.257e-06/0.3381, allocations: 0.5469 kB / 375.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.07079/0.4089, allocations: 15.43 MB / 390.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.786e-05/0.409, allocations: 145.3 kB / 390.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007092/0.4098, allocations: 0.5162 MB / 391.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000233/0.41, allocations: 41.67 kB / 391.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002483/0.4103, allocations: 390.9 kB / 391.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003224/0.4106, allocations: 314.6 kB / 391.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003752/0.411, allocations: 185.2 kB / 392.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.348e-05/0.4111, allocations: 386.5 kB / 392.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001993/0.4131, allocations: 0.7307 MB / 393.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/0.415, allocations: 0.9434 MB / 394.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003575/0.4186, allocations: 1.697 MB / 395.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.4186, allocations: 0 / 395.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02256/0.4412, allocations: 5.374 MB / 401.2 MB, free: 2.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.4414, allocations: 63.41 kB / 401.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.599e-05/0.4414, allocations: 8.125 kB / 401.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03493/0.4763, allocations: 6.835 MB / 408.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007601/0.4772, allocations: 151.7 kB / 408.3 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006466/0.4837, allocations: 3.009 MB / 411.3 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/0.4855, allocations: 191.8 kB / 411.5 MB, free: 8.578 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.4857, allocations: 51.97 kB / 411.5 MB, free: 8.527 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.0004971/0.4862, allocations: 221.6 kB / 411.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002086/0.4864, allocations: 79.06 kB / 411.8 MB, free: 8.223 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02305/0.5095, allocations: 5.107 MB / 416.9 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.903e-05/0.5096, allocations: 8 kB / 416.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.5096, allocations: 7.938 kB / 416.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.951e-05/0.5096, allocations: 3.984 kB / 417 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00213/0.5117, allocations: 1.106 MB / 418.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.5118, allocations: 3.172 kB / 418.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005704/0.5124, allocations: 83.89 kB / 418.1 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03545/0.5478, allocations: 6.796 MB / 424.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002948/0.5482, allocations: 23.97 kB / 425 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006129/0.5543, allocations: 3.024 MB / 428 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.5543, allocations: 0 / 428 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02518/0.5795, allocations: 5.997 MB / 434 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003521/0.5799, allocations: 140.2 kB / 434.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003329/0.5803, allocations: 27.98 kB / 434.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/0.5819, allocations: 170.7 kB / 434.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003045/0.5822, allocations: 92.88 kB / 434.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.5823, allocations: 31.98 kB / 434.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004507/0.5827, allocations: 354.8 kB / 434.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5828, allocations: 0 / 434.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000941/0.5837, allocations: 260 kB / 435 MB, free: 0.8867 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.02654/0.6103, allocations: 6.567 MB / 441.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006442/0.6167, allocations: 2.066 MB / 443.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.6168, allocations: 0 / 443.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003604/0.6204, allocations: 1.086 MB / 444.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008937/0.6213, allocations: 136.6 kB / 444.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0597/0.681, allocations: 16.55 MB / 461.4 MB, free: 6.129 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.6822, allocations: 0.9468 MB / 462.4 MB, free: 5.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004456/0.6826, allocations: 62.25 kB / 462.4 MB, free: 5.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004233/0.6831, allocations: 271.3 kB / 462.7 MB, free: 4.824 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.6831, allocations: 4 kB / 462.7 MB, free: 4.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06614/0.7492, allocations: 28.94 MB / 491.7 MB, free: 8.141 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002391/0.7495, allocations: 240.9 kB / 491.9 MB, free: 7.887 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.081/3.83, allocations: 0 / 491.9 MB, free: 7.887 MB / 398.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.0.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