Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.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.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009714/0.0009712, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.241/1.241, allocations: 205.4 MB / 222.9 MB, free: 8.938 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.0007856/0.0007855, allocations: 90.42 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003011/0.0003011, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1984, allocations: 47.57 MB / 375.1 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.004564/0.203, allocations: 5.44 MB / 380.5 MB, free: 41.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002908/0.2059, allocations: 2.012 MB / 382.5 MB, free: 39.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004143/0.2063, allocations: 21.03 kB / 382.6 MB, free: 39.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004101/0.2068, allocations: 202 kB / 382.8 MB, free: 39.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001139/0.2079, allocations: 0.6407 MB / 383.4 MB, free: 38.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006232/0.2085, allocations: 378.9 kB / 383.8 MB, free: 38.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008138/0.2094, allocations: 1.08 MB / 384.8 MB, free: 37.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001267/0.2106, allocations: 1.031 MB / 385.9 MB, free: 37.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003801/0.211, allocations: 371.2 kB / 386.2 MB, free: 36.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004709/0.2115, allocations: 461.8 kB / 386.7 MB, free: 36.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.743e-05/0.2116, allocations: 49.03 kB / 386.7 MB, free: 36.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003861/0.212, allocations: 200.4 kB / 386.9 MB, free: 36.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.2121, allocations: 177.7 kB / 387.1 MB, free: 36.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003336/0.2125, allocations: 490.5 kB / 387.6 MB, free: 36.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006648/0.2131, allocations: 1.078 MB / 388.7 MB, free: 35.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2132, allocations: 0 / 388.7 MB, free: 35.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2132, allocations: 0 / 388.7 MB, free: 35.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.2132, allocations: 0 / 388.7 MB, free: 35.04 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.002084/0.2153, allocations: 1.265 MB / 389.9 MB, free: 33.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.846e-05/0.2153, allocations: 8.031 kB / 389.9 MB, free: 33.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002451/0.2178, allocations: 475.2 kB / 390.4 MB, free: 33.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000661/0.2184, allocations: 0.5695 MB / 391 MB, free: 32.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.647e-05/0.2185, allocations: 82.39 kB / 391.1 MB, free: 32.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.2186, allocations: 104.4 kB / 391.2 MB, free: 32.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.2201, allocations: 1.059 MB / 392.2 MB, free: 31.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.931e-05/0.2201, allocations: 3.984 kB / 392.2 MB, free: 31.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.288e-05/0.2202, allocations: 44 kB / 392.3 MB, free: 31.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.2202, allocations: 24 kB / 392.3 MB, free: 31.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.2217, allocations: 0.933 MB / 393.2 MB, free: 30.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004082/0.2257, allocations: 3.773 MB / 397 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.2275, allocations: 2.49 MB / 399.5 MB, free: 23.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006994/0.2283, allocations: 479.5 kB / 399.9 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-05/0.2283, allocations: 93.75 kB / 400 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006742/0.229, allocations: 0.5125 MB / 400.6 MB, free: 22.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 2.284e-06/0.229, allocations: 0 / 400.6 MB, free: 22.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=86): time 0.00365/0.2327, allocations: 1.729 MB / 402.3 MB, free: 20.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.2328, allocations: 192.9 kB / 402.5 MB, free: 20.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003858/0.2332, allocations: 469.9 kB / 402.9 MB, free: 19.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.479e-05/0.2332, allocations: 49.64 kB / 403 MB, free: 19.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.2334, allocations: 431.4 kB / 403.4 MB, free: 19.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.2335, allocations: 283.9 kB / 403.7 MB, free: 19.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.2336, allocations: 20 kB / 403.7 MB, free: 19.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.603e-05/0.2337, allocations: 382.7 kB / 404.1 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004584/0.2341, allocations: 277.9 kB / 404.3 MB, free: 18.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005677/0.2347, allocations: 0.5317 MB / 404.9 MB, free: 17.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009916/0.2357, allocations: 0.8226 MB / 405.7 MB, free: 16.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2357, allocations: 0 / 405.7 MB, free: 16.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001586/0.2373, allocations: 1.095 MB / 406.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.2373, allocations: 11.94 kB / 406.8 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.2373, allocations: 8 kB / 406.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007428/0.2381, allocations: 266.3 kB / 407.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005158/0.2386, allocations: 167.7 kB / 407.2 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003727/0.2424, allocations: 4.382 MB / 411.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005538/0.2429, allocations: 115.3 kB / 411.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.249e-05/0.243, allocations: 43.98 kB / 411.8 MB, free: 10.57 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003128/0.2433, allocations: 249.6 kB / 412 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.992e-05/0.2434, allocations: 75.16 kB / 412.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.2451, allocations: 0.987 MB / 413.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.882e-06/0.2451, allocations: 12 kB / 413.1 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.2451, allocations: 0 / 413.1 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-06/0.2451, allocations: 7.922 kB / 413.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002495/0.2476, allocations: 1.962 MB / 415.1 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.2476, allocations: 0 / 415.1 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003758/0.248, allocations: 107.9 kB / 415.2 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006229/0.2486, allocations: 261.5 kB / 415.4 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.437e-05/0.2487, allocations: 23.98 kB / 415.4 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.2521, allocations: 4.353 MB / 419.8 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2522, allocations: 4.031 kB / 419.8 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.2541, allocations: 1.415 MB / 421.2 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002259/0.2543, allocations: 216 kB / 421.4 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.103e-05/0.2544, allocations: 20 kB / 421.4 MB, free: 500 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003877/0.2548, allocations: 51.95 kB / 421.5 MB, free: 448 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.255, allocations: 68.91 kB / 421.6 MB, free: 380 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.165e-05/0.255, allocations: 27.98 kB / 421.6 MB, free: 352 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002513/0.2553, allocations: 322.8 kB / 421.9 MB, free: 32 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2553, allocations: 0 / 421.9 MB, free: 32 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009516/0.2562, allocations: 315.4 kB / 422.2 MB, free: 15.72 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002559/0.2565, allocations: 162.9 kB / 422.4 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.2583, allocations: 1.12 MB / 423.5 MB, free: 14.4 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2583, allocations: 0 / 423.5 MB, free: 14.4 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.2594, allocations: 0.7478 MB / 424.2 MB, free: 13.63 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006258/0.26, allocations: 110.2 kB / 424.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.2629, allocations: 2.093 MB / 426.4 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005581/0.2635, allocations: 0.9944 MB / 427.4 MB, free: 10.37 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.2637, allocations: 59.42 kB / 427.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of SimCode: time 3.6e-07/0.2637, allocations: 3.938 kB / 427.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of Templates: time 0.01867/0.2823, allocations: 17.43 MB / 444.9 MB, free: 8.863 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,voltageQS.pin_p.reference.gamma,iAC.mean1.y,iAC.mean2.y,iDC2.mean.y Variables in the result:iAC.mean1.y,iAC.mean2.y,iDC2.mean.y,time,voltageQS.pin_p.reference.gamma