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.00182/0.00182, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001921/0.001921, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.481/1.481, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 46.58 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1179, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004861/0.1228, allocations: 2.505 MB / 352.7 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001639/0.1245, allocations: 0.6583 MB / 353.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002501/0.1247, allocations: 4 kB / 353.3 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.1249, allocations: 35.64 kB / 353.4 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.1252, allocations: 71.34 kB / 353.4 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.1256, allocations: 87.77 kB / 353.5 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003391/0.1259, allocations: 274.8 kB / 353.8 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.1261, allocations: 92.81 kB / 353.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.1264, allocations: 107.6 kB / 354 MB, free: 488 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.1266, allocations: 119.5 kB / 354.1 MB, free: 368 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.196e-05/0.1266, allocations: 20 kB / 354.1 MB, free: 348 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.987e-05/0.1268, allocations: 39.94 kB / 354.2 MB, free: 308 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.793e-05/0.1268, allocations: 51.83 kB / 354.2 MB, free: 256 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.127, allocations: 127.4 kB / 354.3 MB, free: 128 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003909/0.1274, allocations: 275.3 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1274, allocations: 0 / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1274, allocations: 0 / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.1274, allocations: 0 / 354.6 MB, free: 15.86 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.001065/0.1285, allocations: 0.5418 MB / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.1286, allocations: 8.031 kB / 355.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.216e-05/0.1286, allocations: 54.73 kB / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.055e-05/0.1287, allocations: 24.66 kB / 355.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003543/0.1291, allocations: 239.9 kB / 355.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.1291, allocations: 20.69 kB / 355.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.198e-05/0.1292, allocations: 20.38 kB / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.1296, allocations: 195.4 kB / 355.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/0.1297, allocations: 11.91 kB / 355.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/0.1297, allocations: 4 kB / 355.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.1297, allocations: 12 kB / 355.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003418/0.13, allocations: 149.7 kB / 355.9 MB, free: 14.49 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.002136/0.1322, allocations: 0.9257 MB / 356.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004804/0.1327, allocations: 154.6 kB / 356.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003004/0.133, allocations: 100.8 kB / 357 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.472e-05/0.1331, allocations: 0 / 357 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.1331, allocations: 34.56 kB / 357.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.713e-06/0.1331, allocations: 8 kB / 357.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001905/0.135, allocations: 422.3 kB / 357.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/0.1351, allocations: 51.41 kB / 357.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.1354, allocations: 179.2 kB / 357.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.1354, allocations: 25.7 kB / 357.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.1356, allocations: 152.2 kB / 357.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.669e-05/0.1357, allocations: 67.09 kB / 358 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.1358, allocations: 37.64 kB / 358 MB, free: 12.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.136, allocations: 330.8 kB / 358.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.1362, allocations: 47.97 kB / 358.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.1364, allocations: 73.06 kB / 358.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/0.1367, allocations: 132.6 kB / 358.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1368, allocations: 0 / 358.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000628/0.1374, allocations: 222.2 kB / 358.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.1374, allocations: 4 kB / 358.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.1374, allocations: 3.938 kB / 358.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001908/0.1394, allocations: 216.6 kB / 359 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.1396, allocations: 35.91 kB / 359 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007427/0.1404, allocations: 0.6031 MB / 359.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001837/0.1406, allocations: 19.84 kB / 359.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.1406, allocations: 11.94 kB / 359.7 MB, free: 10.44 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.0001872/0.1408, allocations: 137.7 kB / 359.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.389e-05/0.1409, allocations: 19.8 kB / 359.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006725/0.1416, allocations: 219.2 kB / 360 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.1416, allocations: 4 kB / 360 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1416, allocations: 0 / 360 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1416, allocations: 4 kB / 360 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001292/0.1429, allocations: 0.5974 MB / 360.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.1429, allocations: 3.938 kB / 360.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002186/0.1432, allocations: 27.98 kB / 360.7 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001499/0.1447, allocations: 208.6 kB / 360.9 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.348e-05/0.1447, allocations: 4 kB / 360.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006614/0.1454, allocations: 0.6186 MB / 361.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1454, allocations: 0 / 361.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.1466, allocations: 432.8 kB / 361.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.17e-05/0.1467, allocations: 92.94 kB / 362 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.139e-05/0.1468, allocations: 8 kB / 362 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.147, allocations: 8.062 kB / 362 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.231e-05/0.1471, allocations: 15.98 kB / 362 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.1471, allocations: 4 kB / 362 MB, free: 7.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001671/0.1473, allocations: 132.3 kB / 362.2 MB, free: 7.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1473, allocations: 0 / 362.2 MB, free: 7.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000518/0.1478, allocations: 55.84 kB / 362.2 MB, free: 7.727 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.00163/0.1494, allocations: 0.9635 MB / 363.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005947/0.1501, allocations: 162.8 kB / 363.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.1501, allocations: 0 / 363.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002813/0.1504, allocations: 87.02 kB / 363.4 MB, free: 6.488 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006148/0.151, allocations: 28.02 kB / 363.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004536/0.1555, allocations: 2.323 MB / 365.8 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.156, allocations: 0.7358 MB / 366.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.537e-05/0.1562, allocations: 13.55 kB / 366.5 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.1563, allocations: 55.42 kB / 366.6 MB, free: 3.215 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1563, allocations: 4 kB / 366.6 MB, free: 3.211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3303/0.4867, allocations: 4.654 MB / 371.2 MB, free: 25.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.6, allocations: 2.094 kB / 371.3 MB, free: 25.54 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