Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008222/0.0008222, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008908/0.0008908, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8707/0.8707, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.168e-05/1.275e-05, allocations: 2.281 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.00325/0.003263, allocations: 3.859 MB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.004595, allocations: 0.9891 MB / 329.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001727/0.004768, allocations: 11.94 kB / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.004939, allocations: 99 kB / 329.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003396/0.005278, allocations: 218 kB / 329.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002663/0.005544, allocations: 187.7 kB / 329.9 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004845/0.006029, allocations: 0.7784 MB / 330.7 MB, free: 9.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.00623, allocations: 147.6 kB / 330.8 MB, free: 9.543 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.006563, allocations: 439 kB / 331.2 MB, free: 9.113 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.006775, allocations: 247.2 kB / 331.5 MB, free: 8.871 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.349e-05/0.006828, allocations: 67.94 kB / 331.6 MB, free: 8.805 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.702e-05/0.006905, allocations: 60 kB / 331.6 MB, free: 8.746 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.007008, allocations: 151.4 kB / 331.8 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.007138, allocations: 227.4 kB / 332 MB, free: 8.375 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004554/0.007594, allocations: 0.7436 MB / 332.7 MB, free: 7.629 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.007596, allocations: 0 / 332.7 MB, free: 7.629 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.007597, allocations: 0 / 332.7 MB, free: 7.629 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.007603, allocations: 0 / 332.7 MB, free: 7.629 MB / 298.7 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.0008527/0.008456, allocations: 0.8594 MB / 333.6 MB, free: 6.738 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.008489, allocations: 11.98 kB / 333.6 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.008596, allocations: 111.8 kB / 333.7 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.008779, allocations: 100.4 kB / 333.8 MB, free: 6.512 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.009128, allocations: 343.6 kB / 334.1 MB, free: 6.148 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.009153, allocations: 41.69 kB / 334.2 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.281e-05/0.009206, allocations: 60.38 kB / 334.2 MB, free: 6.047 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005617/0.009767, allocations: 0.566 MB / 334.8 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.009779, allocations: 192 / 334.8 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.009808, allocations: 23.94 kB / 334.8 MB, free: 5.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.009818, allocations: 16 kB / 334.8 MB, free: 5.414 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005213/0.01034, allocations: 464.9 kB / 335.3 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.01227, allocations: 1.912 MB / 337.2 MB, free: 2.973 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005258/0.0128, allocations: 0.515 MB / 337.7 MB, free: 2.445 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003542/0.01315, allocations: 366.3 kB / 338.1 MB, free: 2.082 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.01318, allocations: 4.5 kB / 338.1 MB, free: 2.078 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.0132, allocations: 43.06 kB / 338.1 MB, free: 2.027 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 1.743e-06/0.01321, allocations: 4 kB / 338.1 MB, free: 2.023 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.00238/0.01559, allocations: 1.721 MB / 339.9 MB, free: 256 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.01561, allocations: 59.91 kB / 339.9 MB, free: 180 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.01586, allocations: 365.7 kB / 340.3 MB, free: 15.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.01588, allocations: 41.64 kB / 340.3 MB, free: 15.76 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.01598, allocations: 249.3 kB / 340.6 MB, free: 15.51 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.961e-05/0.01607, allocations: 206.2 kB / 340.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.552e-05/0.01616, allocations: 94.3 kB / 340.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.453e-05/0.01625, allocations: 358.7 kB / 341.2 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.01646, allocations: 173.2 kB / 341.4 MB, free: 14.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.01667, allocations: 212.8 kB / 341.6 MB, free: 14.47 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.01709, allocations: 382.1 kB / 342 MB, free: 14.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.01709, allocations: 0 / 342 MB, free: 14.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007085/0.0178, allocations: 0.6602 MB / 342.6 MB, free: 13.42 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.01781, allocations: 4 kB / 342.6 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.01782, allocations: 3.984 kB / 342.6 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004213/0.01824, allocations: 259.2 kB / 342.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.0184, allocations: 59.89 kB / 342.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00395/0.02235, allocations: 7.03 MB / 350 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.02246, allocations: 19.97 kB / 350 MB, free: 5.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.02248, allocations: 19.98 kB / 350 MB, free: 5.562 MB / 314.7 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.0001404/0.02263, allocations: 177.8 kB / 350.2 MB, free: 5.383 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.674e-05/0.02267, allocations: 59.67 kB / 350.2 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.13e-05/0.02272, allocations: 68.95 kB / 350.3 MB, free: 5.258 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.02273, allocations: 8 kB / 350.3 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.02273, allocations: 0 / 350.3 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.02274, allocations: 3.984 kB / 350.3 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.02425, allocations: 1.241 MB / 351.6 MB, free: 3.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.02425, allocations: 0 / 351.6 MB, free: 3.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.02439, allocations: 59.89 kB / 351.6 MB, free: 3.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003534/0.02474, allocations: 255.1 kB / 351.9 MB, free: 3.621 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/0.02477, allocations: 19.94 kB / 351.9 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003903/0.02867, allocations: 7.023 MB / 358.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.02867, allocations: 96 / 358.9 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009869/0.02966, allocations: 1.028 MB / 359.9 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.02976, allocations: 83.66 kB / 360 MB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.911e-05/0.02979, allocations: 16.06 kB / 360 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.02991, allocations: 20.11 kB / 360 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.276e-05/0.02999, allocations: 52.39 kB / 360.1 MB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.03001, allocations: 19.94 kB / 360.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000172/0.03018, allocations: 263.2 kB / 360.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03018, allocations: 4 kB / 360.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005121/0.03069, allocations: 172 kB / 360.5 MB, free: 10.45 MB / 330.7 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.001201/0.03189, allocations: 1.58 MB / 362.1 MB, free: 8.836 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008995/0.03279, allocations: 1.009 MB / 363.1 MB, free: 7.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.03279, allocations: 0 / 363.1 MB, free: 7.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005878/0.03338, allocations: 0.8293 MB / 364 MB, free: 6.891 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003315/0.03371, allocations: 85.39 kB / 364 MB, free: 6.809 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004623/0.03834, allocations: 5.021 MB / 369.1 MB, free: 1.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001829/0.03852, allocations: 292.3 kB / 369.4 MB, free: 1.367 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.03863, allocations: 48.55 kB / 369.4 MB, free: 1.316 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.03877, allocations: 172.4 kB / 369.6 MB, free: 1.145 MB / 330.7 MB Notification: Performance of SimCode: time 6.92e-07/0.03878, allocations: 0 / 369.6 MB, free: 1.145 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03258/0.07136, allocations: 14.6 MB / 384.2 MB, free: 2.73 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.035/8.107, allocations: 6.859 kB / 384.2 MB, free: 2.727 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.097501266747713]