Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00107/0.001069, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 205.4 MB / 222.9 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008311/0.0008311, allocations: 98.33 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003236, allocations: 16 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2655, allocations: 47.57 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.00369/0.2693, allocations: 3.616 MB / 378.7 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.271, allocations: 0.9353 MB / 379.6 MB, free: 41.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002855/0.2713, allocations: 7.844 kB / 379.6 MB, free: 41.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002268/0.2715, allocations: 71.05 kB / 379.7 MB, free: 41.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005877/0.2721, allocations: 162.1 kB / 379.9 MB, free: 41.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003281/0.2724, allocations: 122.3 kB / 380 MB, free: 41.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007812/0.2732, allocations: 0.6816 MB / 380.7 MB, free: 41.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003979/0.2736, allocations: 188.2 kB / 380.9 MB, free: 40.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003933/0.274, allocations: 241.9 kB / 381.1 MB, free: 40.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003523/0.2744, allocations: 291.6 kB / 381.4 MB, free: 40.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.45e-05/0.2745, allocations: 33.88 kB / 381.4 MB, free: 40.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.2746, allocations: 34.38 kB / 381.4 MB, free: 40.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.2748, allocations: 115 kB / 381.6 MB, free: 40.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003195/0.2751, allocations: 308.5 kB / 381.9 MB, free: 40.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004499/0.2756, allocations: 0.5035 MB / 382.4 MB, free: 39.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2756, allocations: 0 / 382.4 MB, free: 39.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2756, allocations: 0 / 382.4 MB, free: 39.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.2756, allocations: 5 kB / 382.4 MB, free: 39.93 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.001343/0.277, allocations: 0.8128 MB / 383.2 MB, free: 39.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.277, allocations: 9.531 kB / 383.2 MB, free: 39.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.2771, allocations: 69.62 kB / 383.3 MB, free: 39.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004671/0.2776, allocations: 379.2 kB / 383.6 MB, free: 38.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/0.2777, allocations: 39.19 kB / 383.7 MB, free: 38.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.464e-05/0.2778, allocations: 52.88 kB / 383.7 MB, free: 38.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.2788, allocations: 0.545 MB / 384.3 MB, free: 38.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.2788, allocations: 7.938 kB / 384.3 MB, free: 38.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.352e-05/0.2789, allocations: 21.41 kB / 384.3 MB, free: 38.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.65e-05/0.2789, allocations: 12.47 kB / 384.3 MB, free: 38.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009505/0.2799, allocations: 458 kB / 384.8 MB, free: 38.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002654/0.2826, allocations: 2.061 MB / 386.8 MB, free: 36.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009194/0.2835, allocations: 0.6412 MB / 387.5 MB, free: 36.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005015/0.284, allocations: 414.2 kB / 387.9 MB, free: 35.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.868e-05/0.2841, allocations: 12.55 kB / 387.9 MB, free: 35.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.2841, allocations: 43.06 kB / 387.9 MB, free: 35.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 2.495e-06/0.2841, allocations: 0 / 387.9 MB, free: 35.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.00394/0.288, allocations: 2.079 MB / 390 MB, free: 33.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.2881, allocations: 59.97 kB / 390.1 MB, free: 33.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000304/0.2884, allocations: 357.6 kB / 390.4 MB, free: 32.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.2884, allocations: 37.7 kB / 390.4 MB, free: 32.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.2886, allocations: 229.2 kB / 390.7 MB, free: 32.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.2887, allocations: 197.1 kB / 390.9 MB, free: 32.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.2887, allocations: 8 kB / 390.9 MB, free: 32.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.904e-05/0.2888, allocations: 362.8 kB / 391.2 MB, free: 32.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.2891, allocations: 169 kB / 391.4 MB, free: 31.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003088/0.2894, allocations: 215.8 kB / 391.6 MB, free: 31.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005787/0.29, allocations: 392.8 kB / 392 MB, free: 31.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.29, allocations: 0 / 392 MB, free: 31.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001058/0.2911, allocations: 0.6734 MB / 392.6 MB, free: 30.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.2911, allocations: 7.938 kB / 392.7 MB, free: 30.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2911, allocations: 0 / 392.7 MB, free: 30.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006704/0.2918, allocations: 263.1 kB / 392.9 MB, free: 30.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002832/0.2921, allocations: 67.94 kB / 393 MB, free: 30.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004939/0.297, allocations: 6.777 MB / 399.8 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003707/0.2974, allocations: 19.97 kB / 399.8 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-05/0.2975, allocations: 19.98 kB / 399.8 MB, free: 22.99 MB / 298.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 (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 initialization (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002429/0.2977, allocations: 165.8 kB / 400 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.087e-05/0.2978, allocations: 47.44 kB / 400 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.2979, allocations: 72.95 kB / 400.1 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.2979, allocations: 8.469 kB / 400.1 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/0.298, allocations: 4 kB / 400.1 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.298, allocations: 7.922 kB / 400.1 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001795/0.2998, allocations: 1.341 MB / 401.4 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.2998, allocations: 128 / 401.4 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002583/0.3001, allocations: 75.83 kB / 401.5 MB, free: 21.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005844/0.3006, allocations: 259.1 kB / 401.8 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.267e-05/0.3007, allocations: 8 kB / 401.8 MB, free: 20.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004547/0.3052, allocations: 6.78 MB / 408.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3053, allocations: 0 / 408.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.3068, allocations: 1.041 MB / 409.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.307, allocations: 160.4 kB / 409.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.393e-05/0.3071, allocations: 15.98 kB / 409.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.3073, allocations: 16 kB / 409.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.3074, allocations: 56.48 kB / 409.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.694e-05/0.3075, allocations: 16.45 kB / 409.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002285/0.3077, allocations: 251.2 kB / 410.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3077, allocations: 4 kB / 410.1 MB, free: 12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008952/0.3086, allocations: 172 kB / 410.3 MB, free: 11.84 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001447/0.3088, allocations: 111.2 kB / 410.4 MB, free: 11.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.3101, allocations: 1.049 MB / 411.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3102, allocations: 0 / 411.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009055/0.3111, allocations: 0.8453 MB / 412.3 MB, free: 9.719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005749/0.3117, allocations: 81.47 kB / 412.3 MB, free: 9.641 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001986/0.3137, allocations: 1.563 MB / 413.9 MB, free: 8.051 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.314, allocations: 0.8754 MB / 414.8 MB, free: 7.148 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.173e-05/0.3141, allocations: 31.42 kB / 414.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of SimCode: time 8.42e-07/0.3141, allocations: 0 / 414.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of Templates: time 0.01505/0.3291, allocations: 13.77 MB / 428.6 MB, free: 9.344 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches