Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",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.0009927/0.0009927, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0009342/0.0009346, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.447/1.447, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004502/0.0004505, allocations: 4.531 kB / 301.5 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1151, allocations: 50.42 MB / 352 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002864/0.118, allocations: 2.199 MB / 354.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.1193, allocations: 0.6467 MB / 354.8 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/0.1195, allocations: 7.938 kB / 354.8 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.1197, allocations: 23.84 kB / 354.8 MB, free: 456 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001856/0.1198, allocations: 63.45 kB / 354.9 MB, free: 392 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.1202, allocations: 67.88 kB / 355 MB, free: 324 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003254/0.1205, allocations: 266.8 kB / 355.2 MB, free: 56 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.1207, allocations: 68.86 kB / 355.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.1209, allocations: 99.48 kB / 355.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.1211, allocations: 103.5 kB / 355.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.1212, allocations: 16 kB / 355.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.504e-05/0.1213, allocations: 24 kB / 355.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.84e-05/0.1213, allocations: 47.75 kB / 355.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.1215, allocations: 133.1 kB / 355.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003029/0.1218, allocations: 259.3 kB / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.1218, allocations: 0 / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1218, allocations: 0 / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.1218, allocations: 0 / 356 MB, free: 15.3 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000835/0.1227, allocations: 0.4951 MB / 356.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.1227, allocations: 12.03 kB / 356.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.569e-05/0.1228, allocations: 50.73 kB / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.027e-05/0.1229, allocations: 28.66 kB / 356.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.1232, allocations: 235.9 kB / 356.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.1232, allocations: 16.81 kB / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.961e-05/0.1233, allocations: 16.38 kB / 356.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004057/0.1237, allocations: 207.3 kB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.1237, allocations: 3.938 kB / 357 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.1237, allocations: 8 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.1238, allocations: 4 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00033/0.1241, allocations: 153.7 kB / 357.2 MB, free: 13.99 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.001507/0.1256, allocations: 0.9336 MB / 358.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003317/0.1259, allocations: 158.5 kB / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.1262, allocations: 104.8 kB / 358.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.1262, allocations: 0 / 358.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.1262, allocations: 30.56 kB / 358.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.132e-06/0.1262, allocations: 4 kB / 358.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001305/0.1276, allocations: 427.4 kB / 358.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.1276, allocations: 51.41 kB / 358.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.1278, allocations: 183.1 kB / 359 MB, free: 11.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.1278, allocations: 33.7 kB / 359.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.1279, allocations: 144.2 kB / 359.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.068e-05/0.128, allocations: 63.09 kB / 359.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.654e-05/0.128, allocations: 21.72 kB / 359.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1282, allocations: 334.8 kB / 359.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.1283, allocations: 51.92 kB / 359.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.1284, allocations: 76.88 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.1287, allocations: 132.4 kB / 359.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1287, allocations: 4 kB / 359.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004303/0.1291, allocations: 218.2 kB / 360.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.1292, allocations: 6.031 kB / 360.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1292, allocations: 4 kB / 360.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/0.1306, allocations: 228.6 kB / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.1308, allocations: 31.92 kB / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005244/0.1313, allocations: 0.6109 MB / 361 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.1315, allocations: 23.86 kB / 361 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.1315, allocations: 4 kB / 361 MB, free: 9.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.1316, allocations: 137.7 kB / 361.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.1317, allocations: 15.81 kB / 361.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004654/0.1321, allocations: 226.9 kB / 361.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.1322, allocations: 7.984 kB / 361.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.1322, allocations: 0 / 361.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1322, allocations: 3.938 kB / 361.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009046/0.1331, allocations: 0.6013 MB / 362 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1331, allocations: 0 / 362 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001724/0.1333, allocations: 35.92 kB / 362 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.1344, allocations: 220.5 kB / 362.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.1345, allocations: 11.98 kB / 362.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004693/0.1349, allocations: 0.6187 MB / 362.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.135, allocations: 0 / 362.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008256/0.1358, allocations: 428.8 kB / 363.3 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.446e-05/0.1359, allocations: 100.8 kB / 363.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.1359, allocations: 4 kB / 363.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.1361, allocations: 12.06 kB / 363.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.85e-05/0.1361, allocations: 11.98 kB / 363.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.1362, allocations: 11.98 kB / 363.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001073/0.1363, allocations: 127.2 kB / 363.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1363, allocations: 0 / 363.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.1366, allocations: 59.84 kB / 363.6 MB, free: 7.156 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001194/0.1378, allocations: 0.9714 MB / 364.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000391/0.1382, allocations: 154.8 kB / 364.7 MB, free: 6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1382, allocations: 0 / 364.7 MB, free: 6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001918/0.1384, allocations: 86.77 kB / 364.8 MB, free: 5.918 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.1388, allocations: 36.11 kB / 364.8 MB, free: 5.883 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003036/0.1419, allocations: 2.463 MB / 367.3 MB, free: 3.324 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.1422, allocations: 0.7361 MB / 368 MB, free: 2.562 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.074e-05/0.1423, allocations: 13.55 kB / 368.1 MB, free: 2.551 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.155e-05/0.1424, allocations: 51.52 kB / 368.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1424, allocations: 3.938 kB / 368.1 MB, free: 2.496 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1993/0.3417, allocations: 4.308 MB / 372.4 MB, free: 25.12 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001756/0.342, allocations: 233.2 kB / 372.6 MB, free: 24.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.926/2.267, allocations: 0 / 372.6 MB, free: 24.88 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches