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.0009458/0.000946, allocations: 97.25 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009304/0.0009304, allocations: 202.5 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002189/0.0002189, allocations: 12 kB / 306.6 MB, free: 1.418 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08622/0.08645, allocations: 51.48 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005583/0.09209, allocations: 5.087 MB / 363.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003251/0.09537, allocations: 2.073 MB / 365.2 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004043/0.0958, allocations: 19.94 kB / 365.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004652/0.09627, allocations: 202.7 kB / 365.4 MB, free: 6.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001106/0.09739, allocations: 0.5685 MB / 366 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007396/0.09814, allocations: 387 kB / 366.4 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008225/0.09897, allocations: 0.7683 MB / 367.2 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00137/0.1003, allocations: 0.9219 MB / 368.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004188/0.1008, allocations: 366.6 kB / 368.4 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004642/0.1013, allocations: 449.9 kB / 368.9 MB, free: 3.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.174e-05/0.1013, allocations: 48 kB / 368.9 MB, free: 2.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004089/0.1018, allocations: 199.8 kB / 369.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001413/0.1019, allocations: 159.3 kB / 369.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.1021, allocations: 221.1 kB / 369.5 MB, free: 2.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009269/0.103, allocations: 1.071 MB / 370.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.103, allocations: 0 / 370.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.103, allocations: 0 / 370.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.1031, allocations: 0 / 370.6 MB, free: 1.336 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.002505/0.1056, allocations: 1.276 MB / 371.8 MB, free: 8 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.1056, allocations: 8.031 kB / 371.9 MB, free: 0 / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1504/0.256, allocations: 409.4 kB / 372.3 MB, free: 19.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009154/0.2569, allocations: 0.547 MB / 372.8 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.316e-05/0.257, allocations: 77.3 kB / 372.9 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001427/0.2571, allocations: 103.3 kB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/0.259, allocations: 1.008 MB / 374 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.259, allocations: 1.766 kB / 374 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.2591, allocations: 47.19 kB / 374 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.2592, allocations: 23.31 kB / 374.1 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001709/0.2609, allocations: 0.8698 MB / 374.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004607/0.2655, allocations: 3.661 MB / 378.6 MB, free: 16.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/0.2674, allocations: 1.907 MB / 380.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001213/0.2675, allocations: 179.9 kB / 380.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008302/0.2684, allocations: 0.5015 MB / 381.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.204e-06/0.2684, allocations: 0 / 381.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004305/0.2727, allocations: 1.669 MB / 382.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.987e-05/0.2728, allocations: 191.2 kB / 383 MB, free: 13.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006799/0.2735, allocations: 473 kB / 383.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.016e-05/0.2735, allocations: 41.92 kB / 383.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002848/0.2738, allocations: 417.6 kB / 383.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/0.274, allocations: 279.6 kB / 384.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-05/0.2741, allocations: 16.34 kB / 384.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.348e-05/0.2742, allocations: 374.5 kB / 384.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00053/0.2747, allocations: 278.9 kB / 384.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006128/0.2753, allocations: 492.8 kB / 385.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006074/0.2759, allocations: 329.8 kB / 385.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/0.276, allocations: 1.156 kB / 385.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001877/0.2778, allocations: 1.053 MB / 386.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.2779, allocations: 7.156 kB / 386.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.2779, allocations: 6.281 kB / 386.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000822/0.2787, allocations: 269.5 kB / 387 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005721/0.2793, allocations: 153.5 kB / 387.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004282/0.2836, allocations: 4.477 MB / 391.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005717/0.2842, allocations: 109.1 kB / 391.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.555e-05/0.2842, allocations: 31.36 kB / 391.8 MB, free: 7.254 MB / 302.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,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,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 (82): * Single equations (assignments): 80 * 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.0003284/0.2846, allocations: 255.9 kB / 392 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.257e-05/0.2847, allocations: 71.31 kB / 392.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001931/0.2866, allocations: 1.009 MB / 393.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.2866, allocations: 13.12 kB / 393.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2866, allocations: 1.125 kB / 393.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.2867, allocations: 4.312 kB / 393.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.2896, allocations: 1.923 MB / 395 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.2896, allocations: 1.219 kB / 395 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004474/0.2901, allocations: 101.7 kB / 395.1 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006948/0.2908, allocations: 268.4 kB / 395.4 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.575e-05/0.2908, allocations: 17.5 kB / 395.4 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003815/0.2946, allocations: 4.429 MB / 399.8 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.2947, allocations: 1.531 kB / 399.8 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002122/0.2968, allocations: 1.41 MB / 401.2 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002181/0.297, allocations: 214.6 kB / 401.5 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.108e-05/0.2971, allocations: 22.45 kB / 401.5 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004163/0.2975, allocations: 51.62 kB / 401.5 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.2977, allocations: 68.64 kB / 401.6 MB, free: 348 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-05/0.2977, allocations: 27.8 kB / 401.6 MB, free: 336 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002626/0.298, allocations: 315.9 kB / 401.9 MB, free: 140 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.298, allocations: 4 kB / 401.9 MB, free: 136 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009128/0.2989, allocations: 302.6 kB / 402.2 MB, free: 64 kB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (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.0002492/0.2992, allocations: 162.8 kB / 402.4 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.3009, allocations: 1.1 MB / 403.5 MB, free: 15.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3009, allocations: 3.938 kB / 403.5 MB, free: 15.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.302, allocations: 0.7334 MB / 404.2 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.3025, allocations: 103 kB / 404.3 MB, free: 14.74 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002819/0.3053, allocations: 2.021 MB / 406.3 MB, free: 12.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005248/0.3058, allocations: 1.021 MB / 407.4 MB, free: 11.68 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003154/0.3061, allocations: 85.42 kB / 407.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.3063, allocations: 47.42 kB / 407.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3063, allocations: 0 / 407.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of Templates: time 0.01736/0.3236, allocations: 11.17 MB / 418.7 MB, free: 0.5234 MB / 318.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches