Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001145, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007797/0.0007797, allocations: 96.75 kB / 296.8 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002132/0.0002134, allocations: 4 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1965, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.002618/0.1992, allocations: 3.667 MB / 411.7 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.2004, allocations: 0.9435 MB / 412.7 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001795/0.2005, allocations: 8 kB / 412.7 MB, free: 23.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.2007, allocations: 71.39 kB / 412.7 MB, free: 23.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000334/0.2011, allocations: 170.1 kB / 412.9 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.2013, allocations: 119.9 kB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004225/0.2017, allocations: 0.6854 MB / 413.7 MB, free: 22.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.202, allocations: 180.2 kB / 413.9 MB, free: 21.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.2022, allocations: 251 kB / 414.1 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000238/0.2024, allocations: 282.8 kB / 414.4 MB, free: 21.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.322e-05/0.2025, allocations: 36 kB / 414.4 MB, free: 21.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.423e-05/0.2026, allocations: 36 kB / 414.5 MB, free: 21.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.023e-05/0.2027, allocations: 115.5 kB / 414.6 MB, free: 21.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.2029, allocations: 308.3 kB / 414.9 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000308/0.2032, allocations: 0.5062 MB / 415.4 MB, free: 20.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2032, allocations: 0 / 415.4 MB, free: 20.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2032, allocations: 0 / 415.4 MB, free: 20.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.463e-06/0.2032, allocations: 8 kB / 415.4 MB, free: 20.33 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.001092/0.2043, allocations: 0.8185 MB / 416.2 MB, free: 19.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.2044, allocations: 12.03 kB / 416.2 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/0.2047, allocations: 104.1 kB / 416.3 MB, free: 19.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.2051, allocations: 374 kB / 416.7 MB, free: 18.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/0.2051, allocations: 45.69 kB / 416.7 MB, free: 18.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.997e-05/0.2052, allocations: 52.36 kB / 416.8 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007141/0.2059, allocations: 0.5532 MB / 417.3 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.2059, allocations: 0 / 417.3 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.063e-05/0.2059, allocations: 20 kB / 417.4 MB, free: 18.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.206, allocations: 12 kB / 417.4 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006923/0.2067, allocations: 467.6 kB / 417.8 MB, free: 17.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.2088, allocations: 2.057 MB / 419.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007089/0.2095, allocations: 0.649 MB / 420.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004657/0.21, allocations: 410.2 kB / 420.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.113e-05/0.21, allocations: 8.562 kB / 420.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.679e-05/0.21, allocations: 43.05 kB / 421 MB, free: 14.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 1.854e-06/0.21, allocations: 0 / 421 MB, free: 14.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.003715/0.2138, allocations: 2.063 MB / 423.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.499e-05/0.2138, allocations: 59.97 kB / 423.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003138/0.2141, allocations: 361.6 kB / 423.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.2142, allocations: 37.7 kB / 423.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.631e-05/0.2143, allocations: 233.2 kB / 423.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.2144, allocations: 205 kB / 423.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.759e-05/0.2144, allocations: 8 kB / 423.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.346e-05/0.2145, allocations: 358.8 kB / 424.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003357/0.2148, allocations: 169 kB / 424.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003499/0.2152, allocations: 219.8 kB / 424.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007077/0.2159, allocations: 392.9 kB / 425 MB, free: 10.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.2159, allocations: 0 / 425 MB, free: 10.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001086/0.217, allocations: 0.6734 MB / 425.7 MB, free: 9.559 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.217, allocations: 4 kB / 425.7 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2171, allocations: 4 kB / 425.7 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000612/0.2177, allocations: 255.2 kB / 426 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.218, allocations: 67.89 kB / 426 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00429/0.2223, allocations: 6.773 MB / 432.8 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.2225, allocations: 23.95 kB / 432.8 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.2226, allocations: 16.09 kB / 432.9 MB, free: 1.879 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.0001747/0.2227, allocations: 173.9 kB / 433 MB, free: 1.699 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-05/0.2228, allocations: 51.34 kB / 433.1 MB, free: 1.648 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.64e-05/0.2229, allocations: 72.94 kB / 433.1 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.2229, allocations: 7.984 kB / 433.2 MB, free: 1.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.2229, allocations: 4 kB / 433.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.223, allocations: 7.922 kB / 433.2 MB, free: 1.559 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.2246, allocations: 1.353 MB / 434.5 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.2246, allocations: 0 / 434.5 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002495/0.2249, allocations: 59.91 kB / 434.6 MB, free: 84 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006166/0.2255, allocations: 255.2 kB / 434.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.2256, allocations: 11.98 kB / 434.8 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005721/0.2313, allocations: 6.79 MB / 441.6 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2313, allocations: 0 / 441.6 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.2331, allocations: 1.037 MB / 442.7 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.2333, allocations: 160.6 kB / 442.8 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.335e-05/0.2333, allocations: 19.94 kB / 442.8 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.2336, allocations: 19.98 kB / 442.9 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.2337, allocations: 56.42 kB / 442.9 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.2337, allocations: 12 kB / 442.9 MB, free: 7.129 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002543/0.234, allocations: 259.2 kB / 443.2 MB, free: 6.875 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.234, allocations: 0 / 443.2 MB, free: 6.875 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007922/0.2348, allocations: 172 kB / 443.3 MB, free: 6.707 MB / 314.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.0001483/0.235, allocations: 111.2 kB / 443.5 MB, free: 6.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.2365, allocations: 1.041 MB / 444.5 MB, free: 5.496 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.2365, allocations: 4 kB / 444.5 MB, free: 5.492 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.2375, allocations: 0.8453 MB / 445.3 MB, free: 4.598 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.238, allocations: 82.25 kB / 445.4 MB, free: 4.516 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.2402, allocations: 1.549 MB / 447 MB, free: 2.945 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.2406, allocations: 0.8753 MB / 447.9 MB, free: 2.043 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.919e-05/0.2407, allocations: 35.44 kB / 447.9 MB, free: 2.008 MB / 314.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2407, allocations: 0 / 447.9 MB, free: 2.008 MB / 314.7 MB Notification: Performance of Templates: time 0.0144/0.2551, allocations: 13.76 MB / 461.6 MB, free: 4.266 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches