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.001108/0.001108, allocations: 176.9 kB / 16.41 MB, free: 5.707 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.418/1.418, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.000766/0.0007662, allocations: 94.28 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002958, allocations: 12 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2231, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.003293/0.2264, allocations: 3.612 MB / 378.2 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.2279, allocations: 0.9305 MB / 379.1 MB, free: 41.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002802/0.2282, allocations: 8.594 kB / 379.1 MB, free: 41.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.2284, allocations: 72.09 kB / 379.2 MB, free: 41.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004014/0.2288, allocations: 173.5 kB / 379.3 MB, free: 41.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.229, allocations: 114.3 kB / 379.5 MB, free: 41.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005527/0.2296, allocations: 0.6804 MB / 380.1 MB, free: 41.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002845/0.2299, allocations: 167.2 kB / 380.3 MB, free: 40.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.2302, allocations: 241.5 kB / 380.5 MB, free: 40.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.2304, allocations: 291.2 kB / 380.8 MB, free: 40.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.677e-05/0.2305, allocations: 34.59 kB / 380.9 MB, free: 40.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.2306, allocations: 34.41 kB / 380.9 MB, free: 40.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.2307, allocations: 110.5 kB / 381 MB, free: 40.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.2309, allocations: 135.8 kB / 381.1 MB, free: 40.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.2313, allocations: 0.5071 MB / 381.6 MB, free: 40.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2313, allocations: 5.094 kB / 381.6 MB, free: 40.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.2313, allocations: 0 / 381.6 MB, free: 40.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.2313, allocations: 3.938 kB / 381.6 MB, free: 40.08 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.001251/0.2326, allocations: 0.8151 MB / 382.5 MB, free: 39.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2326, allocations: 9.844 kB / 382.5 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.2327, allocations: 68.56 kB / 382.5 MB, free: 39.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004101/0.2331, allocations: 369.5 kB / 382.9 MB, free: 39.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.055e-05/0.2332, allocations: 41.27 kB / 382.9 MB, free: 39.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.919e-05/0.2333, allocations: 53.67 kB / 383 MB, free: 39.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008686/0.2342, allocations: 0.5445 MB / 383.5 MB, free: 38.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.2342, allocations: 5.281 kB / 383.5 MB, free: 38.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.684e-05/0.2342, allocations: 20.97 kB / 383.6 MB, free: 38.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/0.2343, allocations: 12.59 kB / 383.6 MB, free: 38.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008491/0.2351, allocations: 460.6 kB / 384 MB, free: 38.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.2376, allocations: 2.059 MB / 386.1 MB, free: 36.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008564/0.2385, allocations: 0.646 MB / 386.7 MB, free: 36.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005472/0.2391, allocations: 409.6 kB / 387.1 MB, free: 36.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.2391, allocations: 4.562 kB / 387.1 MB, free: 36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.2391, allocations: 43.11 kB / 387.2 MB, free: 35.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 2.234e-06/0.2391, allocations: 0 / 387.2 MB, free: 35.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.004001/0.2431, allocations: 2.056 MB / 389.2 MB, free: 33.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/0.2432, allocations: 63.95 kB / 389.3 MB, free: 33.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.2435, allocations: 357.6 kB / 389.6 MB, free: 33.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.2435, allocations: 37.7 kB / 389.7 MB, free: 33.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.2437, allocations: 233.1 kB / 389.9 MB, free: 33.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.968e-05/0.2438, allocations: 205 kB / 390.1 MB, free: 32.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.128e-05/0.2438, allocations: 8 kB / 390.1 MB, free: 32.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.233e-05/0.2439, allocations: 358.8 kB / 390.5 MB, free: 32.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002921/0.2442, allocations: 165 kB / 390.6 MB, free: 32.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003053/0.2445, allocations: 219.8 kB / 390.8 MB, free: 32.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003018/0.2448, allocations: 186.1 kB / 391 MB, free: 31.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.2448, allocations: 0 / 391 MB, free: 31.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001028/0.2458, allocations: 0.6696 MB / 391.7 MB, free: 31.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.2459, allocations: 8.031 kB / 391.7 MB, free: 31.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.2459, allocations: 0 / 391.7 MB, free: 31.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006515/0.2465, allocations: 259.1 kB / 392 MB, free: 30.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.2468, allocations: 67.89 kB / 392 MB, free: 30.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004584/0.2514, allocations: 6.773 MB / 398.8 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003591/0.2518, allocations: 32.06 kB / 398.8 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.902e-05/0.2519, allocations: 16 kB / 398.8 MB, free: 23.55 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.0001948/0.2521, allocations: 169.4 kB / 399 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.955e-05/0.2521, allocations: 51.42 kB / 399.1 MB, free: 23.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.489e-05/0.2522, allocations: 72.84 kB / 399.1 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.2522, allocations: 8 kB / 399.1 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.2522, allocations: 4 kB / 399.1 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2523, allocations: 3.984 kB / 399.1 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001684/0.2539, allocations: 1.341 MB / 400.5 MB, free: 21.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.227e-06/0.254, allocations: 0 / 400.5 MB, free: 21.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002654/0.2542, allocations: 59.91 kB / 400.5 MB, free: 21.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005764/0.2548, allocations: 255.4 kB / 400.8 MB, free: 21.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3e-05/0.2549, allocations: 19.92 kB / 400.8 MB, free: 21.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004531/0.2594, allocations: 6.785 MB / 407.6 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2594, allocations: 0 / 407.6 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.261, allocations: 1.041 MB / 408.6 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/0.2612, allocations: 160.4 kB / 408.8 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.419e-05/0.2613, allocations: 12 kB / 408.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/0.2616, allocations: 19.98 kB / 408.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.2618, allocations: 48.48 kB / 408.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.323e-05/0.2618, allocations: 20 kB / 408.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002928/0.2621, allocations: 259.2 kB / 409.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2621, allocations: 0 / 409.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009311/0.2631, allocations: 172 kB / 409.3 MB, free: 12.4 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.000168/0.2632, allocations: 115.2 kB / 409.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001349/0.2646, allocations: 1.041 MB / 410.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2646, allocations: 0 / 410.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008708/0.2655, allocations: 0.8414 MB / 411.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005495/0.266, allocations: 98.45 kB / 411.4 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.2682, allocations: 1.56 MB / 413 MB, free: 8.617 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.2685, allocations: 0.8754 MB / 413.8 MB, free: 7.715 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.635e-05/0.2686, allocations: 27.44 kB / 413.9 MB, free: 7.688 MB / 298.7 MB Notification: Performance of SimCode: time 4.1e-07/0.2686, allocations: 0 / 413.9 MB, free: 7.688 MB / 298.7 MB Notification: Performance of Templates: time 0.01356/0.2821, allocations: 13.78 MB / 427.6 MB, free: 9.902 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