Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 210.9 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 207.7 MB / 235.3 MB, free: 9.809 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 58.58 kB / 347.2 MB, free: 9.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2588, allocations: 49.15 MB / 396.4 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004271/0.2631, allocations: 3.769 MB / 400.1 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.2644, allocations: 0.9293 MB / 401.1 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001933/0.2646, allocations: 8.719 kB / 401.1 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002211/0.2648, allocations: 102.8 kB / 401.2 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004176/0.2653, allocations: 192.8 kB / 401.4 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002895/0.2655, allocations: 169 kB / 401.5 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005899/0.2661, allocations: 0.7364 MB / 402.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.2664, allocations: 148.1 kB / 402.4 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002757/0.2667, allocations: 290.5 kB / 402.7 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003246/0.267, allocations: 288.2 kB / 403 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.781e-05/0.2671, allocations: 61.53 kB / 403 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.2672, allocations: 64.72 kB / 403.1 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.2673, allocations: 149 kB / 403.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002042/0.2675, allocations: 269.4 kB / 403.5 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006244/0.2681, allocations: 0.7254 MB / 404.2 MB, free: 4.125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2681, allocations: 1.75 kB / 404.2 MB, free: 4.125 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2681, allocations: 0 / 404.2 MB, free: 4.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.2681, allocations: 0 / 404.2 MB, free: 4.125 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001258/0.2694, allocations: 0.8534 MB / 405.1 MB, free: 3.539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.2694, allocations: 14.8 kB / 405.1 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001294/0.2696, allocations: 110 kB / 405.2 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.362e-05/0.2697, allocations: 79.53 kB / 405.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004807/0.2701, allocations: 329.2 kB / 405.6 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.513e-05/0.2702, allocations: 40.34 kB / 405.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-05/0.2703, allocations: 60 kB / 405.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008234/0.2711, allocations: 0.575 MB / 406.3 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.2711, allocations: 1.281 kB / 406.3 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.2711, allocations: 21.3 kB / 406.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.2712, allocations: 21.67 kB / 406.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007876/0.2719, allocations: 462.6 kB / 406.8 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002327/0.2743, allocations: 1.901 MB / 408.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007826/0.2751, allocations: 0.5153 MB / 409.2 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005211/0.2756, allocations: 357.2 kB / 409.5 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.791e-05/0.2756, allocations: 10.31 kB / 409.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.2756, allocations: 44 kB / 409.6 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=60): time 1.853e-06/0.2756, allocations: 0 / 409.6 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.003866/0.2795, allocations: 1.728 MB / 411.3 MB, free: 76 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.921e-05/0.2795, allocations: 59.16 kB / 411.4 MB, free: 12 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004211/0.28, allocations: 355.5 kB / 411.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.623e-05/0.28, allocations: 39.61 kB / 411.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.2802, allocations: 250.2 kB / 412 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.2803, allocations: 210.3 kB / 412.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.2805, allocations: 94.98 kB / 412.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.2807, allocations: 361 kB / 412.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003165/0.281, allocations: 163.8 kB / 412.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003528/0.2813, allocations: 212.6 kB / 413 MB, free: 14.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007036/0.282, allocations: 385.5 kB / 413.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.282, allocations: 0 / 413.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001198/0.2832, allocations: 0.6597 MB / 414.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2832, allocations: 9.406 kB / 414.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.2833, allocations: 0 / 414.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006922/0.2839, allocations: 248.5 kB / 414.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002839/0.2842, allocations: 65.14 kB / 414.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007078/0.2913, allocations: 7.047 MB / 421.4 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003347/0.2916, allocations: 22.95 kB / 421.4 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.35e-05/0.2917, allocations: 15.31 kB / 421.5 MB, free: 7.406 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: 6 (IdealDiode6.off,IdealDiode5.off,IdealDiode4.off,IdealDiode3.off,IdealDiode2.off,IdealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002656/0.2919, allocations: 179.2 kB / 421.6 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.675e-05/0.292, allocations: 52.94 kB / 421.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001277/0.2922, allocations: 66.7 kB / 421.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.2922, allocations: 5.5 kB / 421.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.2922, allocations: 2.219 kB / 421.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.2922, allocations: 3.984 kB / 421.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002161/0.2943, allocations: 1.243 MB / 423 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.2943, allocations: 0 / 423 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.2946, allocations: 58.34 kB / 423.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006505/0.2953, allocations: 258.3 kB / 423.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.708e-05/0.2953, allocations: 19.34 kB / 423.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007144/0.3024, allocations: 7.033 MB / 430.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3024, allocations: 3.984 kB / 430.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/0.3043, allocations: 1.015 MB / 431.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002383/0.3045, allocations: 87.69 kB / 431.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.812e-05/0.3046, allocations: 15.88 kB / 431.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.3048, allocations: 15.98 kB / 431.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.305, allocations: 56.39 kB / 431.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/0.305, allocations: 23.88 kB / 431.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003043/0.3053, allocations: 259.2 kB / 431.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3053, allocations: 4 kB / 431.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009529/0.3062, allocations: 176 kB / 432 MB, free: 14.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002126/0.3084, allocations: 1.569 MB / 433.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.31, allocations: 1.017 MB / 434.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.31, allocations: 0 / 434.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.3112, allocations: 0.8215 MB / 435.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005068/0.3117, allocations: 85.38 kB / 435.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007674/0.3194, allocations: 5.063 MB / 440.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.3197, allocations: 287.9 kB / 440.8 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.3199, allocations: 44.55 kB / 440.9 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.3201, allocations: 171.4 kB / 441.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3201, allocations: 4 kB / 441.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05769/0.3778, allocations: 14.37 MB / 455.4 MB, free: 6.352 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.18, allocations: 3.938 kB / 455.4 MB, free: 6.348 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.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: 16.016948130447417]