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.00107/0.00107, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001112/0.001112, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 67.73 kB / 307.6 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08584/0.08716, allocations: 50.53 MB / 358.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007208/0.09441, allocations: 6.279 MB / 364.4 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004021/0.09846, allocations: 2.235 MB / 366.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008299/0.09932, allocations: 19.94 kB / 366.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.1014, allocations: 0.7422 MB / 367.4 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001772/0.1032, allocations: 0.6094 MB / 368 MB, free: 4.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001279/0.1045, allocations: 0.526 MB / 368.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001592/0.1061, allocations: 1.191 MB / 369.8 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001344/0.1074, allocations: 0.8392 MB / 370.6 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007056/0.1081, allocations: 466.3 kB / 371 MB, free: 1.133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008139/0.109, allocations: 0.5406 MB / 371.6 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002303/0.1092, allocations: 112 kB / 371.7 MB, free: 492 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007021/0.1099, allocations: 291.8 kB / 372 MB, free: 200 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1571/0.2671, allocations: 246.9 kB / 372.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008525/0.268, allocations: 0.5441 MB / 372.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002151/0.2701, allocations: 1.458 MB / 374.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.2702, allocations: 1.109 kB / 374.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2702, allocations: 0 / 374.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.782e-05/0.2702, allocations: 0.625 kB / 374.2 MB, free: 10.91 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.003284/0.2735, allocations: 1.444 MB / 375.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.2735, allocations: 10.89 kB / 375.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002673/0.2762, allocations: 402.3 kB / 376.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009317/0.2772, allocations: 0.5794 MB / 376.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.225e-05/0.2772, allocations: 77.19 kB / 376.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.2774, allocations: 101.7 kB / 376.8 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.2794, allocations: 1.016 MB / 377.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.583e-05/0.2794, allocations: 5.719 kB / 377.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/0.2795, allocations: 42.36 kB / 377.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/0.2796, allocations: 24.31 kB / 377.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.2812, allocations: 0.8504 MB / 378.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00512/0.2864, allocations: 3.631 MB / 382.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002003/0.2884, allocations: 1.904 MB / 384.3 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009161/0.2893, allocations: 462 kB / 384.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001439/0.2895, allocations: 181.1 kB / 384.9 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008608/0.2904, allocations: 497.5 kB / 385.4 MB, free: 5.637 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.986e-06/0.2904, allocations: 1.75 kB / 385.4 MB, free: 5.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004541/0.2949, allocations: 1.679 MB / 387.1 MB, free: 4.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.295, allocations: 200.5 kB / 387.3 MB, free: 4.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007105/0.2958, allocations: 475.2 kB / 387.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.921e-05/0.2958, allocations: 45.88 kB / 387.8 MB, free: 4.465 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002919/0.2961, allocations: 421.2 kB / 388.2 MB, free: 4.137 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.2963, allocations: 273.4 kB / 388.5 MB, free: 3.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002352/0.2966, allocations: 159.4 kB / 388.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.016e-05/0.2967, allocations: 376.1 kB / 389 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005396/0.2972, allocations: 273 kB / 389.3 MB, free: 3.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006318/0.2979, allocations: 490.8 kB / 389.7 MB, free: 3.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.299, allocations: 0.7432 MB / 390.5 MB, free: 2.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.299, allocations: 6.844 kB / 390.5 MB, free: 2.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001951/0.301, allocations: 1.027 MB / 391.5 MB, free: 2.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.301, allocations: 6.812 kB / 391.5 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.301, allocations: 14.09 kB / 391.5 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008403/0.3019, allocations: 280.3 kB / 391.8 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005512/0.3025, allocations: 142.4 kB / 392 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005157/0.3076, allocations: 4.856 MB / 396.8 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000838/0.3085, allocations: 103.2 kB / 396.9 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.369e-05/0.3086, allocations: 31.11 kB / 396.9 MB, free: 14.1 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.0004986/0.3091, allocations: 254.6 kB / 397.2 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.3092, allocations: 68.08 kB / 397.3 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002086/0.3113, allocations: 0.9697 MB / 398.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.3113, allocations: 9.156 kB / 398.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3113, allocations: 5.375 kB / 398.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.3114, allocations: 3.984 kB / 398.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003481/0.3148, allocations: 1.916 MB / 400.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.3149, allocations: 1.469 kB / 400.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004678/0.3153, allocations: 103.8 kB / 400.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000822/0.3162, allocations: 267.7 kB / 400.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-05/0.3163, allocations: 22.23 kB / 400.6 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005004/0.3213, allocations: 4.811 MB / 405.4 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.3213, allocations: 6.797 kB / 405.4 MB, free: 7.816 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00254/0.3238, allocations: 1.383 MB / 406.8 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003962/0.3243, allocations: 216.1 kB / 407 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.3244, allocations: 18.28 kB / 407 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005089/0.3249, allocations: 39.81 kB / 407 MB, free: 6.793 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.3251, allocations: 75.36 kB / 407.1 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.833e-05/0.3252, allocations: 23.95 kB / 407.1 MB, free: 6.742 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000398/0.3256, allocations: 334.4 kB / 407.4 MB, free: 6.539 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3256, allocations: 0 / 407.4 MB, free: 6.539 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001183/0.3268, allocations: 305.7 kB / 407.7 MB, free: 6.465 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.0003152/0.3271, allocations: 157.4 kB / 407.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002344/0.3294, allocations: 1.12 MB / 409 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.3295, allocations: 0 / 409 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.3307, allocations: 0.7444 MB / 409.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000717/0.3314, allocations: 117.4 kB / 409.9 MB, free: 4.492 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003194/0.3346, allocations: 1.722 MB / 411.6 MB, free: 2.742 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/0.3352, allocations: 0.9982 MB / 412.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/0.3354, allocations: 59.42 kB / 412.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3354, allocations: 4 kB / 412.7 MB, free: 1.652 MB / 318.1 MB Notification: Performance of Templates: time 0.02039/0.3558, allocations: 17.6 MB / 430.3 MB, free: 96 kB / 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