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.001362/0.001362, allocations: 179.9 kB / 16.41 MB, free: 5.703 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.327/1.327, allocations: 205.4 MB / 222.5 MB, free: 9.035 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.000696/0.0006959, allocations: 89.27 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002783/0.0002782, allocations: 8 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.195/0.1952, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.004493/0.1998, allocations: 5.412 MB / 380 MB, free: 41.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002798/0.2026, allocations: 2.034 MB / 382 MB, free: 39.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000429/0.2031, allocations: 20.41 kB / 382 MB, free: 39.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004476/0.2035, allocations: 206.2 kB / 382.2 MB, free: 39.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001278/0.2048, allocations: 0.6353 MB / 382.9 MB, free: 38.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000675/0.2055, allocations: 375.2 kB / 383.2 MB, free: 38.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008358/0.2063, allocations: 1.07 MB / 384.3 MB, free: 37.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00123/0.2076, allocations: 0.9461 MB / 385.2 MB, free: 37.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004293/0.208, allocations: 373.7 kB / 385.6 MB, free: 36.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004631/0.2085, allocations: 462.6 kB / 386.1 MB, free: 36.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.2086, allocations: 47.91 kB / 386.1 MB, free: 36.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004255/0.209, allocations: 203.6 kB / 386.3 MB, free: 36.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.2092, allocations: 177 kB / 386.5 MB, free: 36.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001599/0.2093, allocations: 212 kB / 386.7 MB, free: 36.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007611/0.2101, allocations: 1.076 MB / 387.8 MB, free: 35.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.2101, allocations: 1.094 kB / 387.8 MB, free: 35.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2101, allocations: 0 / 387.8 MB, free: 35.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.2101, allocations: 0 / 387.8 MB, free: 35.54 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.002263/0.2124, allocations: 1.264 MB / 389 MB, free: 34.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.2124, allocations: 12.03 kB / 389 MB, free: 34.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002708/0.2152, allocations: 474.3 kB / 389.5 MB, free: 33.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006693/0.2158, allocations: 0.5568 MB / 390.1 MB, free: 33.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.711e-05/0.2159, allocations: 81.98 kB / 390.1 MB, free: 33.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.216, allocations: 108 kB / 390.2 MB, free: 32.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.2175, allocations: 1.055 MB / 391.3 MB, free: 31.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.2176, allocations: 4 kB / 391.3 MB, free: 31.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-05/0.2177, allocations: 40 kB / 391.3 MB, free: 31.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.2177, allocations: 24 kB / 391.4 MB, free: 31.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.2191, allocations: 0.9331 MB / 392.3 MB, free: 30.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004226/0.2234, allocations: 3.766 MB / 396.1 MB, free: 26.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001908/0.2253, allocations: 2.494 MB / 398.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000755/0.2261, allocations: 487.4 kB / 399 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.31e-05/0.2262, allocations: 101.7 kB / 399.1 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007099/0.2269, allocations: 0.4969 MB / 399.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 2.806e-06/0.2269, allocations: 0 / 399.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=86): time 0.003886/0.2308, allocations: 1.714 MB / 401.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.2308, allocations: 204.9 kB / 401.5 MB, free: 20.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003821/0.2312, allocations: 462 kB / 402 MB, free: 20.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.2313, allocations: 49.69 kB / 402 MB, free: 20.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.2315, allocations: 431.4 kB / 402.5 MB, free: 19.99 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.2316, allocations: 284 kB / 402.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.2316, allocations: 16 kB / 402.8 MB, free: 19.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.348e-05/0.2317, allocations: 374.7 kB / 403.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004882/0.2322, allocations: 285.9 kB / 403.4 MB, free: 19.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005569/0.2328, allocations: 0.5317 MB / 403.9 MB, free: 18.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005246/0.2333, allocations: 343 kB / 404.3 MB, free: 18.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2333, allocations: 0 / 404.3 MB, free: 18.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001613/0.2349, allocations: 1.096 MB / 405.4 MB, free: 16.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.235, allocations: 12.89 kB / 405.4 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.235, allocations: 8 kB / 405.4 MB, free: 16.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007456/0.2358, allocations: 272.2 kB / 405.6 MB, free: 16.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005306/0.2363, allocations: 163.7 kB / 405.8 MB, free: 16.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003748/0.2401, allocations: 4.397 MB / 410.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005746/0.2406, allocations: 111.1 kB / 410.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.973e-05/0.2407, allocations: 40.06 kB / 410.4 MB, free: 11.71 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.0003015/0.241, allocations: 249.6 kB / 410.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.909e-05/0.2411, allocations: 71.16 kB / 410.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/0.2427, allocations: 0.9792 MB / 411.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.2428, allocations: 8 kB / 411.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.2428, allocations: 4 kB / 411.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.2428, allocations: 11.95 kB / 411.7 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002461/0.2452, allocations: 1.966 MB / 413.6 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.2453, allocations: 192 / 413.6 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004055/0.2457, allocations: 103.9 kB / 413.7 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006557/0.2463, allocations: 273.5 kB / 414 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.103e-05/0.2464, allocations: 12 kB / 414 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003478/0.2499, allocations: 4.356 MB / 418.4 MB, free: 3.324 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2499, allocations: 4.031 kB / 418.4 MB, free: 3.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002058/0.252, allocations: 1.412 MB / 419.8 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/0.2522, allocations: 220 kB / 420 MB, free: 1.645 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.031e-05/0.2523, allocations: 16 kB / 420 MB, free: 1.629 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004457/0.2527, allocations: 47.97 kB / 420.1 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.2528, allocations: 76.89 kB / 420.1 MB, free: 1.508 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/0.2529, allocations: 23.98 kB / 420.2 MB, free: 1.484 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002553/0.2531, allocations: 314.9 kB / 420.5 MB, free: 1.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.2532, allocations: 0 / 420.5 MB, free: 1.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008215/0.254, allocations: 319.1 kB / 420.8 MB, free: 0.8672 MB / 298.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.0002004/0.2542, allocations: 163.1 kB / 420.9 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.2558, allocations: 1.108 MB / 422 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2558, allocations: 384 / 422 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.2569, allocations: 0.7548 MB / 422.8 MB, free: 14.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006413/0.2576, allocations: 126.2 kB / 422.9 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.2606, allocations: 2.09 MB / 425 MB, free: 12.53 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000624/0.2613, allocations: 1.006 MB / 426 MB, free: 11.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.2614, allocations: 55.42 kB / 426.1 MB, free: 11.44 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2614, allocations: 0 / 426.1 MB, free: 11.44 MB / 314.7 MB Notification: Performance of Templates: time 0.01861/0.2801, allocations: 17.46 MB / 443.5 MB, free: 9.977 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) Reference file matches