Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStatic.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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001153/0.001153, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001146, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 246.9 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 63.17 kB / 306.9 MB, free: 1.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09339/0.09488, allocations: 50.53 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.00832/0.1032, allocations: 6.27 MB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00443/0.1077, allocations: 2.208 MB / 365.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009732/0.1087, allocations: 23.94 kB / 365.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002143/0.111, allocations: 0.688 MB / 366.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001844/0.1128, allocations: 0.5362 MB / 367.2 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00123/0.1141, allocations: 0.4912 MB / 367.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001767/0.1158, allocations: 1.129 MB / 368.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001325/0.1172, allocations: 0.6823 MB / 369.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007584/0.118, allocations: 422.2 kB / 369.9 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007716/0.1187, allocations: 0.5172 MB / 370.4 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000215/0.119, allocations: 68 kB / 370.5 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006802/0.1197, allocations: 235.8 kB / 370.7 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002378/0.1199, allocations: 207.1 kB / 370.9 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006103/0.1205, allocations: 0.509 MB / 371.4 MB, free: 464 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1725/0.2931, allocations: 1.104 MB / 372.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.2931, allocations: 4.156 kB / 372.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2931, allocations: 0 / 372.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.055e-05/0.2932, allocations: 0 / 372.5 MB, free: 11.59 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004599/0.2978, allocations: 1.453 MB / 374 MB, free: 10.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.2979, allocations: 13.78 kB / 374 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00312/0.301, allocations: 402.2 kB / 374.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00149/0.3025, allocations: 0.5711 MB / 374.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.3026, allocations: 78.75 kB / 375 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003333/0.303, allocations: 99.42 kB / 375.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002631/0.3056, allocations: 1.017 MB / 376.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.894e-05/0.3057, allocations: 2.094 kB / 376.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.3058, allocations: 43.05 kB / 376.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.118e-05/0.3059, allocations: 26.78 kB / 376.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002039/0.3079, allocations: 0.8538 MB / 377.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006922/0.3149, allocations: 3.627 MB / 380.7 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002208/0.3171, allocations: 1.904 MB / 382.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009207/0.3181, allocations: 465.9 kB / 383 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001433/0.3182, allocations: 174.3 kB / 383.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009817/0.3192, allocations: 0.489 MB / 383.7 MB, free: 6.727 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 3.476e-06/0.3192, allocations: 0 / 383.7 MB, free: 6.727 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004567/0.3238, allocations: 1.693 MB / 385.4 MB, free: 6.039 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.3239, allocations: 192.2 kB / 385.6 MB, free: 5.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006898/0.3246, allocations: 482.5 kB / 386.1 MB, free: 5.586 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.904e-05/0.3247, allocations: 42.42 kB / 386.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002852/0.325, allocations: 422.6 kB / 386.5 MB, free: 5.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.3252, allocations: 272.7 kB / 386.8 MB, free: 5.008 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002761/0.3255, allocations: 158.9 kB / 386.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3256, allocations: 378.8 kB / 387.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005765/0.3262, allocations: 267.5 kB / 387.6 MB, free: 4.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006867/0.3269, allocations: 488.8 kB / 388 MB, free: 4.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.3281, allocations: 0.7439 MB / 388.8 MB, free: 3.684 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.3281, allocations: 1.062 kB / 388.8 MB, free: 3.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002043/0.3302, allocations: 1.031 MB / 389.8 MB, free: 3.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.3302, allocations: 9.516 kB / 389.8 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-05/0.3302, allocations: 9.156 kB / 389.8 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009391/0.3312, allocations: 275.3 kB / 390.1 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005598/0.3318, allocations: 147.4 kB / 390.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004725/0.3365, allocations: 4.401 MB / 394.6 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007984/0.3373, allocations: 95.31 kB / 394.7 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.3374, allocations: 35.94 kB / 394.8 MB, free: 15.57 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y_last,$PRE.iDC2.mean.y_last,iAC.mean2.y_last,$PRE.iAC.mean2.y_last,iAC.mean1.y_last,$PRE.iAC.mean1.y_last,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 (82): * Single equations (assignments): 80 * 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.0005318/0.338, allocations: 251.4 kB / 395 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.3382, allocations: 69.78 kB / 395.1 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002157/0.3404, allocations: 0.9638 MB / 396.1 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.3404, allocations: 12.97 kB / 396.1 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3404, allocations: 3.938 kB / 396.1 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.3404, allocations: 8.469 kB / 396.1 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003585/0.344, allocations: 1.919 MB / 398 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.344, allocations: 1.438 kB / 398 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004589/0.3445, allocations: 103.2 kB / 398.1 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008356/0.3453, allocations: 255.2 kB / 398.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.478e-05/0.3454, allocations: 21.19 kB / 398.4 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005838/0.3513, allocations: 4.356 MB / 402.7 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.3513, allocations: 8.781 kB / 402.7 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003733/0.3551, allocations: 1.371 MB / 404.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006021/0.3557, allocations: 218.3 kB / 404.3 MB, free: 8.801 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002406/0.3559, allocations: 18.31 kB / 404.3 MB, free: 8.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007465/0.3567, allocations: 42.12 kB / 404.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000234/0.3569, allocations: 65.39 kB / 404.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.019e-05/0.357, allocations: 30.89 kB / 404.5 MB, free: 8.723 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006009/0.3576, allocations: 325.2 kB / 404.8 MB, free: 8.527 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3577, allocations: 0 / 404.8 MB, free: 8.527 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001747/0.3594, allocations: 308.9 kB / 405.1 MB, free: 8.449 MB / 318.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_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * 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 (57): * Single equations (assignments): 52 * 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.000414/0.3598, allocations: 157.6 kB / 405.2 MB, free: 8.336 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002697/0.3626, allocations: 1.081 MB / 406.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.124e-06/0.3626, allocations: 2.625 kB / 406.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001674/0.3643, allocations: 0.7371 MB / 407.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.3656, allocations: 122.7 kB / 407.2 MB, free: 6.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005461/0.371, allocations: 2.111 MB / 409.3 MB, free: 4.641 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009448/0.372, allocations: 0.9982 MB / 410.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003084/0.3723, allocations: 55.42 kB / 410.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3723, allocations: 0 / 410.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of Templates: time 0.03048/0.4028, allocations: 17.6 MB / 427.9 MB, free: 2.023 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.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