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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001994/0.001994, allocations: 187.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 225.7 MB / 253.3 MB, free: 13.06 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 47.94 kB / 371.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2686, allocations: 52.18 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003822/0.2724, allocations: 2.55 MB / 426 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.2735, allocations: 0.6544 MB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.935e-05/0.2736, allocations: 7.938 kB / 426.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.2737, allocations: 31.66 kB / 426.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.2739, allocations: 75.33 kB / 426.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.2741, allocations: 83.83 kB / 426.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003067/0.2744, allocations: 286.6 kB / 427.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.2746, allocations: 68.48 kB / 427.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001532/0.2748, allocations: 103.7 kB / 427.3 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000173/0.2749, allocations: 123.5 kB / 427.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.275, allocations: 20 kB / 427.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.891e-05/0.275, allocations: 39.98 kB / 427.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.534e-05/0.2751, allocations: 43.84 kB / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.2752, allocations: 123.3 kB / 427.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003696/0.2756, allocations: 291.7 kB / 427.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2756, allocations: 4 kB / 427.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2756, allocations: 0 / 427.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.401e-06/0.2756, allocations: 0 / 427.9 MB, free: 10.13 MB / 334.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.0007815/0.2764, allocations: 469.5 kB / 428.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.2764, allocations: 12.03 kB / 428.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.105e-05/0.2764, allocations: 16.56 kB / 428.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.252e-05/0.2765, allocations: 54.73 kB / 428.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.175e-05/0.2765, allocations: 24.8 kB / 428.5 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.2768, allocations: 186.1 kB / 428.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.2769, allocations: 16.81 kB / 428.7 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.2769, allocations: 16.38 kB / 428.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003618/0.2773, allocations: 199.1 kB / 428.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.2773, allocations: 0 / 428.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.2773, allocations: 12 kB / 428.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.2773, allocations: 4 kB / 428.9 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003102/0.2776, allocations: 149.7 kB / 429 MB, free: 8.926 MB / 334.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.001346/0.279, allocations: 0.8899 MB / 429.9 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003095/0.2793, allocations: 138.6 kB / 430.1 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.2795, allocations: 88.81 kB / 430.1 MB, free: 7.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.2795, allocations: 4 kB / 430.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.2795, allocations: 34.56 kB / 430.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.2795, allocations: 0 / 430.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001201/0.2807, allocations: 341.8 kB / 430.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.2807, allocations: 51.41 kB / 430.6 MB, free: 7.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.2809, allocations: 179.3 kB / 430.7 MB, free: 7.062 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.2809, allocations: 29.7 kB / 430.8 MB, free: 7.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.4e-05/0.281, allocations: 144.5 kB / 430.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.245e-05/0.2811, allocations: 67.42 kB / 431 MB, free: 6.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.604e-05/0.2812, allocations: 37.7 kB / 431 MB, free: 6.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.2813, allocations: 330.8 kB / 431.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.2814, allocations: 47.97 kB / 431.4 MB, free: 6.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.2815, allocations: 73.62 kB / 431.5 MB, free: 6.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.2818, allocations: 132.3 kB / 431.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2818, allocations: 0 / 431.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004098/0.2822, allocations: 218.3 kB / 431.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.2822, allocations: 7.938 kB / 431.8 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2822, allocations: 0 / 431.8 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001319/0.2835, allocations: 220.6 kB / 432 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.2837, allocations: 35.92 kB / 432.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005172/0.2842, allocations: 0.6031 MB / 432.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.2843, allocations: 19.92 kB / 432.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.2843, allocations: 8.062 kB / 432.7 MB, free: 5.043 MB / 334.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.0001331/0.2844, allocations: 138.8 kB / 432.8 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.422e-05/0.2845, allocations: 19.89 kB / 432.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004576/0.2849, allocations: 224.2 kB / 433.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.285, allocations: 0 / 433.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.285, allocations: 4 kB / 433.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.285, allocations: 7.922 kB / 433.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008901/0.2859, allocations: 0.5691 MB / 433.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2859, allocations: 0 / 433.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.286, allocations: 27.98 kB / 433.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001069/0.2871, allocations: 200.7 kB / 433.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.2871, allocations: 8 kB / 433.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004834/0.2876, allocations: 0.6187 MB / 434.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.2876, allocations: 3.938 kB / 434.5 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000808/0.2884, allocations: 430 kB / 434.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-05/0.2884, allocations: 23.84 kB / 434.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.2884, allocations: 0 / 434.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.2886, allocations: 12 kB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.932e-05/0.2886, allocations: 11.97 kB / 435 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.2886, allocations: 12.06 kB / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.2887, allocations: 135.2 kB / 435.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2887, allocations: 0 / 435.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.289, allocations: 59.83 kB / 435.2 MB, free: 2.445 MB / 334.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.001149/0.2902, allocations: 0.9635 MB / 436.1 MB, free: 1.449 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003761/0.2906, allocations: 135.9 kB / 436.3 MB, free: 1.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2906, allocations: 0 / 436.3 MB, free: 1.316 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002007/0.2908, allocations: 91.86 kB / 436.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.2911, allocations: 25.44 kB / 436.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.294, allocations: 2.322 MB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.2944, allocations: 0.7359 MB / 439.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.057e-05/0.2945, allocations: 17.48 kB / 439.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.2946, allocations: 55.42 kB / 439.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2946, allocations: 0 / 439.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.3226, allocations: 4.994 MB / 444.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.36, allocations: 0 / 444.5 MB, free: 9.129 MB / 350.1 MB " [Timeout remaining time 647] (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 --stepSize=0.0009996 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.86213109298842]