Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 114.5 kB / 17.73 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 187 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 47.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1059, allocations: 46.63 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.1903/0.2963, allocations: 6.249 MB / 381.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004281/0.3006, allocations: 2.172 MB / 383.6 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004236/0.3011, allocations: 20.78 kB / 383.6 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001723/0.3029, allocations: 0.7606 MB / 384.4 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001545/0.3044, allocations: 0.793 MB / 385.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009513/0.3054, allocations: 497.4 kB / 385.6 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001092/0.3065, allocations: 1.191 MB / 386.8 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/0.3076, allocations: 0.835 MB / 387.7 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005523/0.3081, allocations: 470.2 kB / 388.1 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006158/0.3088, allocations: 0.5531 MB / 388.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.3089, allocations: 110.7 kB / 388.8 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005794/0.3095, allocations: 264.5 kB / 389 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.3097, allocations: 258.1 kB / 389.3 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004262/0.3102, allocations: 0.5466 MB / 389.8 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001627/0.3118, allocations: 1.468 MB / 391.3 MB, free: 5.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3118, allocations: 1.219 kB / 391.3 MB, free: 5.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3118, allocations: 0 / 391.3 MB, free: 5.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.3118, allocations: 0 / 391.3 MB, free: 5.406 MB / 318.1 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.00294/0.3148, allocations: 1.438 MB / 392.7 MB, free: 4.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.3148, allocations: 9.312 kB / 392.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003084/0.3179, allocations: 476.4 kB / 393.2 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008236/0.3188, allocations: 0.5715 MB / 393.8 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.429e-05/0.3188, allocations: 84.33 kB / 393.9 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/0.319, allocations: 105.2 kB / 394 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/0.3209, allocations: 1.054 MB / 395 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.036e-05/0.3209, allocations: 5.281 kB / 395 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.57e-05/0.321, allocations: 42.22 kB / 395.1 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.414e-05/0.3211, allocations: 29.33 kB / 395.1 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.3229, allocations: 0.9207 MB / 396 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005153/0.328, allocations: 3.714 MB / 399.7 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002597/0.3306, allocations: 2.48 MB / 402.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.3317, allocations: 475.1 kB / 402.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001039/0.3318, allocations: 94.86 kB / 402.8 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009535/0.3328, allocations: 0.4918 MB / 403.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.956e-06/0.3328, allocations: 0 / 403.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.004669/0.3375, allocations: 1.693 MB / 405 MB, free: 12.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.3376, allocations: 204.3 kB / 405.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006307/0.3382, allocations: 471.3 kB / 405.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.408e-05/0.3383, allocations: 43.39 kB / 405.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003057/0.3386, allocations: 433.1 kB / 406.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.3388, allocations: 282.7 kB / 406.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/0.3391, allocations: 163.5 kB / 406.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002499/0.3394, allocations: 381.2 kB / 406.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005498/0.3399, allocations: 275.7 kB / 407.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007491/0.3407, allocations: 0.5185 MB / 407.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.342, allocations: 0.8007 MB / 408.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.342, allocations: 5.469 kB / 408.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002046/0.344, allocations: 1.083 MB / 409.6 MB, free: 9.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.3441, allocations: 12.03 kB / 409.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.3441, allocations: 7.719 kB / 409.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008434/0.3449, allocations: 271.7 kB / 409.9 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005807/0.3455, allocations: 159.5 kB / 410 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005835/0.3514, allocations: 4.862 MB / 414.9 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006761/0.3521, allocations: 108.6 kB / 415 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.604e-05/0.3521, allocations: 41.2 kB / 415 MB, free: 4.996 MB / 334.1 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,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean2.y,$PRE.iAC.mean2.y,iAC.mean1.y,$PRE.iAC.mean1.y,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003912/0.3525, allocations: 249 kB / 415.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.3527, allocations: 74.69 kB / 415.3 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/0.3548, allocations: 0.9599 MB / 416.3 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.3548, allocations: 12.41 kB / 416.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3548, allocations: 1.5 kB / 416.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.3548, allocations: 3.984 kB / 416.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003224/0.358, allocations: 1.933 MB / 418.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3581, allocations: 1.375 kB / 418.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004368/0.3585, allocations: 102.3 kB / 418.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007832/0.3593, allocations: 267.5 kB / 418.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.254e-05/0.3594, allocations: 21.55 kB / 418.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005402/0.3648, allocations: 4.808 MB / 423.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3648, allocations: 1.562 kB / 423.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/0.3673, allocations: 1.385 MB / 424.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002696/0.3676, allocations: 224 kB / 425 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.3677, allocations: 20 kB / 425.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004596/0.3682, allocations: 44.22 kB / 425.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.3683, allocations: 72.89 kB / 425.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-05/0.3684, allocations: 23.98 kB / 425.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003576/0.3688, allocations: 338.7 kB / 425.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3688, allocations: 0 / 425.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001061/0.3698, allocations: 307.1 kB / 425.8 MB, free: 11.2 MB / 350.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002763/0.3701, allocations: 151.2 kB / 426 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00196/0.3721, allocations: 1.109 MB / 427.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3721, allocations: 384 / 427.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.3732, allocations: 0.7507 MB / 427.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000645/0.3739, allocations: 121.7 kB / 428 MB, free: 9.016 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/0.3767, allocations: 1.686 MB / 429.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005562/0.3773, allocations: 0.9944 MB / 430.6 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003036/0.3776, allocations: 85.66 kB / 430.7 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.3777, allocations: 51.42 kB / 430.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3778, allocations: 4 kB / 430.8 MB, free: 6.133 MB / 350.1 MB Notification: Performance of Templates: time 0.02107/0.3988, allocations: 12.68 MB / 443.5 MB, free: 9.43 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches