Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.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: translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier") translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 111.7 kB / 17.71 MB, free: 5.383 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.001056/0.001056, allocations: 183.7 kB / 18.63 MB, free: 4.469 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.29/1.29, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 47.94 kB / 351.9 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2473, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004842/0.2521, allocations: 4.24 MB / 405.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.2538, allocations: 0.9344 MB / 406.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.254, allocations: 8 kB / 406.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002505/0.2543, allocations: 95 kB / 406.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004318/0.2548, allocations: 194.3 kB / 406.8 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.2551, allocations: 167.7 kB / 407 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006389/0.2557, allocations: 0.7322 MB / 407.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003145/0.256, allocations: 211.1 kB / 407.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002934/0.2563, allocations: 286.9 kB / 408.2 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003434/0.2567, allocations: 330.6 kB / 408.5 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.27e-05/0.2568, allocations: 60 kB / 408.6 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.718e-05/0.2569, allocations: 67.94 kB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.257, allocations: 143.4 kB / 408.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002782/0.2573, allocations: 326.3 kB / 409.1 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005879/0.2579, allocations: 0.7096 MB / 409.8 MB, free: 408 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2579, allocations: 0 / 409.8 MB, free: 408 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2579, allocations: 0 / 409.8 MB, free: 408 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.2579, allocations: 0 / 409.8 MB, free: 408 kB / 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.001411/0.2594, allocations: 0.9158 MB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2594, allocations: 8.031 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.2595, allocations: 68.19 kB / 410.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004504/0.26, allocations: 385.9 kB / 411.2 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.477e-05/0.26, allocations: 41.62 kB / 411.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.188e-05/0.2601, allocations: 48.38 kB / 411.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008577/0.261, allocations: 0.5416 MB / 411.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.261, allocations: 11.92 kB / 411.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.341e-05/0.261, allocations: 20 kB / 411.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.2611, allocations: 12 kB / 411.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008198/0.2619, allocations: 455.7 kB / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/0.2645, allocations: 2.022 MB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008947/0.2654, allocations: 0.6415 MB / 415 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005725/0.266, allocations: 406.2 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.166e-05/0.266, allocations: 4.562 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.266, allocations: 43.06 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=60): time 1.963e-06/0.266, allocations: 0 / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.00432/0.2704, allocations: 2.032 MB / 417.5 MB, free: 8.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.2704, allocations: 59.97 kB / 417.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.2708, allocations: 361.7 kB / 417.9 MB, free: 7.973 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.2708, allocations: 37.7 kB / 417.9 MB, free: 7.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.271, allocations: 225.2 kB / 418.1 MB, free: 7.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.2711, allocations: 205.1 kB / 418.3 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.2713, allocations: 98.16 kB / 418.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.2714, allocations: 350.8 kB / 418.8 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003326/0.2718, allocations: 165 kB / 418.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003564/0.2721, allocations: 215.8 kB / 419.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006781/0.2728, allocations: 388.8 kB / 419.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2728, allocations: 0 / 419.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001179/0.274, allocations: 0.6656 MB / 420.2 MB, free: 5.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.274, allocations: 11.94 kB / 420.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2741, allocations: 0 / 420.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007267/0.2748, allocations: 255.2 kB / 420.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/0.2751, allocations: 67.89 kB / 420.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006353/0.2815, allocations: 7.489 MB / 428 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/0.2818, allocations: 16.03 kB / 428 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/0.2818, allocations: 23.97 kB / 428 MB, free: 13.18 MB / 350.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.0002195/0.282, allocations: 165.9 kB / 428.2 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.198e-05/0.2821, allocations: 51.34 kB / 428.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.2823, allocations: 64.95 kB / 428.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.2823, allocations: 12.06 kB / 428.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/0.2823, allocations: 3.938 kB / 428.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2823, allocations: 3.984 kB / 428.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.2843, allocations: 1.337 MB / 429.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2843, allocations: 0 / 429.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002843/0.2846, allocations: 63.89 kB / 429.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006492/0.2853, allocations: 263.5 kB / 430 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.2853, allocations: 12 kB / 430 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00601/0.2913, allocations: 7.509 MB / 437.5 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2914, allocations: 0 / 437.5 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.293, allocations: 1.03 MB / 438.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001773/0.2932, allocations: 160.4 kB / 438.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.536e-05/0.2933, allocations: 8 kB / 438.7 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.2935, allocations: 23.92 kB / 438.7 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.2937, allocations: 48.48 kB / 438.8 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.86e-05/0.2937, allocations: 16 kB / 438.8 MB, free: 1.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002447/0.294, allocations: 263.2 kB / 439.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.294, allocations: 0 / 439.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008469/0.2948, allocations: 176 kB / 439.2 MB, free: 1.301 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.0001373/0.295, allocations: 112 kB / 439.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.2964, allocations: 1.033 MB / 440.4 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2964, allocations: 0 / 440.4 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.2975, allocations: 0.8574 MB / 441.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004815/0.298, allocations: 89.45 kB / 441.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.3, allocations: 1.291 MB / 442.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.3004, allocations: 0.8754 MB / 443.5 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.163e-05/0.3005, allocations: 39.42 kB / 443.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3006, allocations: 3.938 kB / 443.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of Templates: time 0.01384/0.3144, allocations: 13.82 MB / 457.3 MB, free: 15.04 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches