Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_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.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 99.73 kB / 16.5 MB, free: 6.688 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.001343/0.001343, allocations: 192.5 kB / 17.42 MB, free: 6.09 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.491/1.491, allocations: 222.9 MB / 241.1 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 46.95 kB / 300.1 MB, free: 5.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1348, allocations: 49.45 MB / 349.5 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.007068/0.1419, allocations: 4.937 MB / 354.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003386/0.1453, allocations: 1.276 MB / 355.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006927/0.1461, allocations: 12 kB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004131/0.1465, allocations: 91.22 kB / 355.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006923/0.1473, allocations: 222.1 kB / 356 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008457/0.1481, allocations: 259.7 kB / 356.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001122/0.1492, allocations: 1.044 MB / 357.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004069/0.1497, allocations: 227.4 kB / 357.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004984/0.1502, allocations: 378.5 kB / 357.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005302/0.1507, allocations: 446 kB / 358.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.1508, allocations: 52 kB / 358.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002008/0.151, allocations: 75.97 kB / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.1512, allocations: 163.3 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003871/0.1516, allocations: 409.8 kB / 359.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008048/0.1524, allocations: 0.9616 MB / 360 MB, free: 9.953 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1524, allocations: 0 / 360 MB, free: 9.953 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1524, allocations: 0 / 360 MB, free: 9.953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1524, allocations: 4 kB / 360 MB, free: 9.949 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.002548/0.155, allocations: 1.254 MB / 361.3 MB, free: 8.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.1551, allocations: 8.031 kB / 361.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001484/0.1552, allocations: 110.6 kB / 361.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.1554, allocations: 99.75 kB / 361.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006209/0.156, allocations: 487.4 kB / 362 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.095e-05/0.1561, allocations: 45.69 kB / 362 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.961e-05/0.1562, allocations: 64.38 kB / 362.1 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.1576, allocations: 0.6546 MB / 362.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.1577, allocations: 0 / 362.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.728e-05/0.1577, allocations: 28 kB / 362.7 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.1578, allocations: 16 kB / 362.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.1595, allocations: 0.6999 MB / 363.5 MB, free: 6.371 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.004425/0.1639, allocations: 2.386 MB / 365.9 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.1654, allocations: 0.5788 MB / 366.4 MB, free: 3.246 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006904/0.1661, allocations: 333.9 kB / 366.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.694e-05/0.1661, allocations: 12.42 kB / 366.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00101/0.1671, allocations: 421.5 kB / 367.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.204e-06/0.1672, allocations: 0 / 367.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2805/0.4477, allocations: 15.39 MB / 382.6 MB, free: 22.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.907e-05/0.4478, allocations: 148.1 kB / 382.7 MB, free: 22.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008446/0.4487, allocations: 0.5209 MB / 383.2 MB, free: 22.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002517/0.449, allocations: 45.61 kB / 383.3 MB, free: 21.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002439/0.4492, allocations: 395.1 kB / 383.7 MB, free: 21.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002553/0.4495, allocations: 311.1 kB / 384 MB, free: 21.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000405/0.4499, allocations: 181.4 kB / 384.2 MB, free: 21.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.45, allocations: 394.4 kB / 384.5 MB, free: 20.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001899/0.4519, allocations: 0.7196 MB / 385.3 MB, free: 20.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002023/0.454, allocations: 0.9519 MB / 386.2 MB, free: 19.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003924/0.4579, allocations: 1.692 MB / 387.9 MB, free: 18.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.4579, allocations: 1.375 kB / 387.9 MB, free: 18.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02179/0.4797, allocations: 5.376 MB / 393.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.59e-05/0.4799, allocations: 67.41 kB / 393.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.4799, allocations: 4 kB / 393.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03165/0.5116, allocations: 6.835 MB / 400.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006517/0.5123, allocations: 147.7 kB / 400.3 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005184/0.5174, allocations: 3.012 MB / 403.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/0.5191, allocations: 183.8 kB / 403.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.5192, allocations: 51.97 kB / 403.6 MB, free: 4.316 MB / 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.0003875/0.5196, allocations: 223 kB / 403.8 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.5197, allocations: 79.06 kB / 403.9 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02159/0.5413, allocations: 5.107 MB / 409 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/0.5414, allocations: 8 kB / 409 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.5414, allocations: 0.875 kB / 409 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.278e-05/0.5415, allocations: 6.75 kB / 409 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001868/0.5433, allocations: 1.101 MB / 410.1 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5433, allocations: 1.5 kB / 410.1 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005276/0.5439, allocations: 95.88 kB / 410.2 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04812/0.592, allocations: 6.8 MB / 417 MB, free: 6.852 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000324/0.5924, allocations: 30.84 kB / 417 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01146/0.6039, allocations: 3.029 MB / 420 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/0.6039, allocations: 0 / 420 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04576/0.6497, allocations: 5.995 MB / 426 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002747/0.65, allocations: 140.2 kB / 426.2 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.6502, allocations: 24 kB / 426.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/0.6516, allocations: 163.8 kB / 426.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002886/0.6519, allocations: 100.9 kB / 426.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.332e-05/0.6521, allocations: 31.98 kB / 426.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004817/0.6525, allocations: 358.8 kB / 426.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6525, allocations: 3.5 kB / 426.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008951/0.6534, allocations: 261.4 kB / 427.1 MB, free: 12.65 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.02633/0.6798, allocations: 6.557 MB / 433.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006442/0.6863, allocations: 2.044 MB / 435.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.6863, allocations: 0 / 435.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003548/0.6899, allocations: 1.08 MB / 436.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000855/0.6907, allocations: 129.7 kB / 436.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05666/0.7474, allocations: 16.55 MB / 453.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/0.748, allocations: 0.951 MB / 454.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003732/0.7484, allocations: 58.27 kB / 454.5 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003445/0.7487, allocations: 267.3 kB / 454.7 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7487, allocations: 0 / 454.7 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05256/0.8013, allocations: 27.62 MB / 482.3 MB, free: 5.293 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003837/0.8017, allocations: 235.1 kB / 482.6 MB, free: 5.039 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.843/3.644, allocations: 0 / 482.6 MB, free: 5.039 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches