Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_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.001295/0.001295, allocations: 114.4 kB / 17.28 MB, free: 6.199 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.001386/0.001386, allocations: 193.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.509/1.509, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 52.14 kB / 280.2 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1168, allocations: 46.63 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006835/0.1237, allocations: 4.718 MB / 331.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003071/0.1268, allocations: 1.261 MB / 332.9 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008101/0.1277, allocations: 15.94 kB / 332.9 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000537/0.1283, allocations: 79.31 kB / 332.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.1294, allocations: 210.2 kB / 333.2 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008827/0.1302, allocations: 255.7 kB / 333.4 MB, free: 14.13 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001212/0.1315, allocations: 1.056 MB / 334.5 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004097/0.1319, allocations: 258.4 kB / 334.7 MB, free: 12.8 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004435/0.1324, allocations: 406.5 kB / 335.1 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004769/0.1328, allocations: 454.1 kB / 335.6 MB, free: 11.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.133, allocations: 84 kB / 335.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.1332, allocations: 112 kB / 335.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.1333, allocations: 183.3 kB / 335.9 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000382/0.1337, allocations: 437.8 kB / 336.3 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008986/0.1346, allocations: 0.9541 MB / 337.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1346, allocations: 3.938 kB / 337.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1347, allocations: 4 kB / 337.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.1347, allocations: 0 / 337.3 MB, free: 10.2 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.00243/0.1371, allocations: 1.215 MB / 338.5 MB, free: 8.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.1372, allocations: 12.03 kB / 338.5 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001292/0.1373, allocations: 102.7 kB / 338.6 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001615/0.1375, allocations: 87.91 kB / 338.7 MB, free: 8.703 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006486/0.1381, allocations: 461.4 kB / 339.2 MB, free: 8.211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/0.1382, allocations: 49.69 kB / 339.2 MB, free: 8.164 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.1383, allocations: 60.36 kB / 339.3 MB, free: 8.105 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.1397, allocations: 0.639 MB / 339.9 MB, free: 7.457 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.1398, allocations: 0 / 339.9 MB, free: 7.457 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.34e-05/0.1398, allocations: 24 kB / 339.9 MB, free: 7.434 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.1398, allocations: 12 kB / 340 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.1414, allocations: 0.6805 MB / 340.6 MB, free: 6.742 MB / 286.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.003806/0.1452, allocations: 2.335 MB / 343 MB, free: 4.258 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.1466, allocations: 0.5866 MB / 343.6 MB, free: 3.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000694/0.1473, allocations: 330 kB / 343.9 MB, free: 3.336 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.368e-05/0.1474, allocations: 12.42 kB / 343.9 MB, free: 3.324 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/0.1485, allocations: 429.4 kB / 344.3 MB, free: 2.879 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 3.146e-06/0.1485, allocations: 3.938 kB / 344.3 MB, free: 2.875 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.07225/0.2207, allocations: 15.4 MB / 359.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.2209, allocations: 145.5 kB / 359.9 MB, free: 3.207 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007697/0.2217, allocations: 494.8 kB / 360.3 MB, free: 2.715 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002108/0.2219, allocations: 49.7 kB / 360.4 MB, free: 2.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003362/0.2222, allocations: 367.9 kB / 360.7 MB, free: 2.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003964/0.2226, allocations: 307.5 kB / 361 MB, free: 1.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000465/0.2231, allocations: 178.5 kB / 361.2 MB, free: 1.809 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.2233, allocations: 386.8 kB / 361.6 MB, free: 1.422 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/0.2254, allocations: 0.7163 MB / 362.3 MB, free: 0.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002248/0.2277, allocations: 0.9343 MB / 363.2 MB, free: 15.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004098/0.2318, allocations: 1.658 MB / 364.9 MB, free: 13.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.727e-06/0.2318, allocations: 0 / 364.9 MB, free: 13.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02403/0.2559, allocations: 5.339 MB / 370.2 MB, free: 8.578 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/0.2561, allocations: 67.39 kB / 370.3 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.596e-05/0.2561, allocations: 4 kB / 370.3 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03454/0.2906, allocations: 6.836 MB / 377.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007867/0.2915, allocations: 139.7 kB / 377.3 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2222/0.5137, allocations: 3.011 MB / 380.3 MB, free: 52.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.5158, allocations: 180.5 kB / 380.5 MB, free: 52.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.516, allocations: 52.22 kB / 380.5 MB, free: 52.97 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (50): * Single equations (assignments): 46 * 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.0005275/0.5165, allocations: 219.7 kB / 380.7 MB, free: 52.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.5167, allocations: 74.12 kB / 380.8 MB, free: 52.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02405/0.5407, allocations: 5.105 MB / 385.9 MB, free: 52.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.704e-05/0.5409, allocations: 9.438 kB / 385.9 MB, free: 52.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.5409, allocations: 0 / 385.9 MB, free: 52.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.628e-05/0.5409, allocations: 3.703 kB / 385.9 MB, free: 52.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.5426, allocations: 1.087 MB / 387 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.5426, allocations: 7.062 kB / 387 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000556/0.5431, allocations: 91.03 kB / 387.1 MB, free: 51.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03262/0.5758, allocations: 6.784 MB / 393.9 MB, free: 50.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002115/0.576, allocations: 27.72 kB / 393.9 MB, free: 50.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00501/0.581, allocations: 3.036 MB / 397 MB, free: 48.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.5811, allocations: 4 kB / 397 MB, free: 48.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02217/0.6032, allocations: 5.978 MB / 402.9 MB, free: 42.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000261/0.6036, allocations: 151.4 kB / 403.1 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001635/0.6037, allocations: 16.55 kB / 403.1 MB, free: 42.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/0.605, allocations: 177.1 kB / 403.3 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002643/0.6053, allocations: 96.88 kB / 403.4 MB, free: 42.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.4e-05/0.6054, allocations: 39.91 kB / 403.4 MB, free: 42.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003038/0.6057, allocations: 334.9 kB / 403.7 MB, free: 42.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6057, allocations: 0.875 kB / 403.7 MB, free: 42.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007084/0.6064, allocations: 248 kB / 404 MB, free: 41.88 MB / 318.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.02261/0.629, allocations: 6.573 MB / 410.6 MB, free: 35.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005336/0.6344, allocations: 2.039 MB / 412.6 MB, free: 33.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.6345, allocations: 4.125 kB / 412.6 MB, free: 33.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003022/0.6375, allocations: 1.092 MB / 413.7 MB, free: 32.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008462/0.6383, allocations: 127.2 kB / 413.8 MB, free: 32.03 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04846/0.6868, allocations: 16.29 MB / 430.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.6872, allocations: 0.935 MB / 431 MB, free: 14.56 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003739/0.6876, allocations: 52.25 kB / 431.1 MB, free: 14.51 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002831/0.6879, allocations: 263.3 kB / 431.4 MB, free: 14.25 MB / 318.1 MB Notification: Performance of SimCode: time 8.52e-07/0.6879, allocations: 4 kB / 431.4 MB, free: 14.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04893/0.7368, allocations: 28.61 MB / 460 MB, free: 1.59 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/0.7371, allocations: 243.2 kB / 460.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.861/3.599, allocations: 0 / 460.2 MB, free: 1.328 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches