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.001794/0.001794, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002331/0.002331, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 63.19 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1026, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006367/0.109, allocations: 4.959 MB / 362.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002644/0.1117, allocations: 1.287 MB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006647/0.1124, allocations: 12 kB / 363.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004936/0.1129, allocations: 130.7 kB / 364 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008398/0.1138, allocations: 249.7 kB / 364.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009703/0.1148, allocations: 311.4 kB / 364.5 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001438/0.1162, allocations: 1.091 MB / 365.6 MB, free: 5.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000473/0.1167, allocations: 266.5 kB / 365.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006382/0.1174, allocations: 406.6 kB / 366.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006378/0.118, allocations: 470 kB / 366.7 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.1182, allocations: 88 kB / 366.8 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002906/0.1185, allocations: 112 kB / 366.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001843/0.1187, allocations: 191.3 kB / 367.1 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006222/0.1194, allocations: 449.8 kB / 367.5 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001225/0.1206, allocations: 1.001 MB / 368.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1206, allocations: 0 / 368.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1206, allocations: 0 / 368.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.491e-05/0.1207, allocations: 0 / 368.5 MB, free: 2.98 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.00337/0.1241, allocations: 1.258 MB / 369.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.1241, allocations: 15.97 kB / 369.8 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002383/0.1244, allocations: 106.7 kB / 369.9 MB, free: 1.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.1247, allocations: 91.81 kB / 370 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009395/0.1256, allocations: 491.4 kB / 370.5 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.537e-05/0.1257, allocations: 45.69 kB / 370.5 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.1259, allocations: 64.38 kB / 370.6 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.1275, allocations: 0.6585 MB / 371.3 MB, free: 144 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.1276, allocations: 0 / 371.3 MB, free: 144 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.763e-05/0.1277, allocations: 28 kB / 371.3 MB, free: 116 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.1277, allocations: 15.98 kB / 371.3 MB, free: 100 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1773/0.305, allocations: 0.694 MB / 372 MB, free: 20.18 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.003962/0.309, allocations: 2.375 MB / 374.4 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.3105, allocations: 0.5798 MB / 374.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007361/0.3112, allocations: 333.1 kB / 375.3 MB, free: 18.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.089e-05/0.3113, allocations: 15.8 kB / 375.3 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001007/0.3123, allocations: 425.8 kB / 375.7 MB, free: 18.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.156e-06/0.3123, allocations: 0 / 375.7 MB, free: 18.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06654/0.3789, allocations: 15.43 MB / 391.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.379, allocations: 146.7 kB / 391.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005547/0.3795, allocations: 0.5123 MB / 391.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001338/0.3797, allocations: 47.08 kB / 391.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.3799, allocations: 387.4 kB / 392.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.3801, allocations: 314.9 kB / 392.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003032/0.3804, allocations: 182.5 kB / 392.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.708e-05/0.3805, allocations: 382.8 kB / 393.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001785/0.3823, allocations: 0.7244 MB / 393.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.3841, allocations: 0.9559 MB / 394.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003549/0.3877, allocations: 1.693 MB / 396.4 MB, free: 7.793 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.3877, allocations: 0 / 396.4 MB, free: 7.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0215/0.4092, allocations: 5.377 MB / 401.8 MB, free: 2.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.983e-05/0.4093, allocations: 67.39 kB / 401.9 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.4093, allocations: 11.52 kB / 401.9 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03309/0.4424, allocations: 6.832 MB / 408.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007097/0.4432, allocations: 151.7 kB / 408.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006167/0.4494, allocations: 3.016 MB / 411.9 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.4511, allocations: 179.9 kB / 412.1 MB, free: 8.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.4513, allocations: 47.97 kB / 412.1 MB, free: 8.027 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.0006174/0.4519, allocations: 229.6 kB / 412.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000253/0.4521, allocations: 79.06 kB / 412.4 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03094/0.4831, allocations: 5.111 MB / 417.5 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/0.4832, allocations: 8 kB / 417.5 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.4832, allocations: 0 / 417.5 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.098e-05/0.4832, allocations: 8.922 kB / 417.5 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002676/0.4859, allocations: 1.101 MB / 418.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/0.486, allocations: 2.766 kB / 418.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009682/0.4869, allocations: 91.88 kB / 418.7 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04352/0.5305, allocations: 6.792 MB / 425.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002379/0.5308, allocations: 23.97 kB / 425.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006272/0.5371, allocations: 3.026 MB / 428.6 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5371, allocations: 0 / 428.6 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02496/0.5621, allocations: 5.981 MB / 434.6 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.5623, allocations: 148.1 kB / 434.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002268/0.5625, allocations: 23.94 kB / 434.7 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/0.564, allocations: 175.8 kB / 434.9 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.5643, allocations: 92.88 kB / 435 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.303e-05/0.5644, allocations: 35.09 kB / 435 MB, free: 0.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004204/0.5648, allocations: 354.8 kB / 435.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5648, allocations: 0 / 435.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007847/0.5656, allocations: 260 kB / 435.6 MB, free: 368 kB / 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.02525/0.5909, allocations: 6.562 MB / 442.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00639/0.5973, allocations: 2.062 MB / 444.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.5973, allocations: 0 / 444.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003631/0.601, allocations: 1.1 MB / 445.3 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008085/0.6018, allocations: 129 kB / 445.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05591/0.6577, allocations: 16.22 MB / 461.7 MB, free: 5.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007061/0.6585, allocations: 0.9507 MB / 462.6 MB, free: 4.961 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004198/0.6589, allocations: 58.27 kB / 462.7 MB, free: 4.902 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003984/0.6593, allocations: 271.3 kB / 463 MB, free: 4.637 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.6593, allocations: 0 / 463 MB, free: 4.637 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06602/0.7254, allocations: 29.49 MB / 492.4 MB, free: 7.367 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.56, allocations: 17.83 kB / 492.5 MB, free: 7.355 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