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.00112/0.001121, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001251/0.001251, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 59.81 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/0.08943, allocations: 50.54 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007325/0.09679, allocations: 6.274 MB / 365.2 MB, free: 7.004 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003479/0.1003, allocations: 2.239 MB / 367.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003453/0.1007, allocations: 19.94 kB / 367.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00162/0.1023, allocations: 0.7539 MB / 368.2 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.1035, allocations: 0.605 MB / 368.8 MB, free: 3.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008819/0.1044, allocations: 0.526 MB / 369.3 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.1055, allocations: 1.195 MB / 370.5 MB, free: 1.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.1065, allocations: 0.8354 MB / 371.4 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004938/0.107, allocations: 474.2 kB / 371.8 MB, free: 328 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1476/0.2546, allocations: 0.5296 MB / 372.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003654/0.255, allocations: 111.3 kB / 372.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000738/0.2557, allocations: 287.3 kB / 372.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001954/0.2559, allocations: 246 kB / 373 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005304/0.2565, allocations: 0.5482 MB / 373.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001607/0.2581, allocations: 1.479 MB / 375 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2581, allocations: 0.8438 kB / 375 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2581, allocations: 0.6094 kB / 375 MB, free: 10.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.2582, allocations: 1.031 kB / 375 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.002973/0.2611, allocations: 1.452 MB / 376.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.2612, allocations: 10.33 kB / 376.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00252/0.2637, allocations: 400.3 kB / 376.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009159/0.2646, allocations: 0.5863 MB / 377.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.18e-05/0.2647, allocations: 75.88 kB / 377.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.2648, allocations: 102.2 kB / 377.6 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.2665, allocations: 1.018 MB / 378.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.004e-05/0.2666, allocations: 1.844 kB / 378.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-05/0.2667, allocations: 39.98 kB / 378.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.041e-05/0.2667, allocations: 24.12 kB / 378.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.2683, allocations: 0.852 MB / 379.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004985/0.2732, allocations: 3.603 MB / 383.2 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/0.2752, allocations: 1.903 MB / 385.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008464/0.2761, allocations: 468.9 kB / 385.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001423/0.2762, allocations: 177.7 kB / 385.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008314/0.2771, allocations: 499.2 kB / 386.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.935e-06/0.2771, allocations: 1.406 kB / 386.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004413/0.2815, allocations: 1.684 MB / 387.9 MB, free: 4.617 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.696e-05/0.2816, allocations: 199.1 kB / 388.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006557/0.2823, allocations: 474.3 kB / 388.5 MB, free: 4.168 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.176e-05/0.2824, allocations: 46.77 kB / 388.6 MB, free: 4.121 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002881/0.2826, allocations: 417.1 kB / 389 MB, free: 3.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.2828, allocations: 275.8 kB / 389.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002389/0.2831, allocations: 158.8 kB / 389.4 MB, free: 3.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.426e-05/0.2832, allocations: 374.5 kB / 389.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005063/0.2837, allocations: 264.2 kB / 390 MB, free: 3.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005793/0.2843, allocations: 495.5 kB / 390.5 MB, free: 2.715 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.2854, allocations: 0.7448 MB / 391.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.2854, allocations: 2.094 kB / 391.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001868/0.2873, allocations: 1.033 MB / 392.3 MB, free: 1.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.2873, allocations: 7.969 kB / 392.3 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.2873, allocations: 8.875 kB / 392.3 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008064/0.2881, allocations: 279.3 kB / 392.6 MB, free: 1.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005626/0.2887, allocations: 141.9 kB / 392.7 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004953/0.2937, allocations: 4.858 MB / 397.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007908/0.2945, allocations: 102.8 kB / 397.7 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.404e-05/0.2946, allocations: 34.19 kB / 397.7 MB, free: 13.69 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.0004397/0.295, allocations: 244.6 kB / 398 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.2951, allocations: 65.78 kB / 398 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001995/0.2971, allocations: 0.9749 MB / 399 MB, free: 12.92 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.2972, allocations: 12.61 kB / 399 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2972, allocations: 1.438 kB / 399 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.2972, allocations: 3.984 kB / 399 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003309/0.3005, allocations: 1.909 MB / 400.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.3005, allocations: 1.312 kB / 400.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004363/0.301, allocations: 101.8 kB / 401 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007267/0.3017, allocations: 262.1 kB / 401.3 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/0.3018, allocations: 17.22 kB / 401.3 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005057/0.3068, allocations: 4.811 MB / 406.1 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3069, allocations: 1.031 kB / 406.1 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002487/0.3094, allocations: 1.376 MB / 407.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003787/0.3098, allocations: 215.1 kB / 407.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.3099, allocations: 18.97 kB / 407.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004522/0.3103, allocations: 39 kB / 407.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/0.3105, allocations: 82.61 kB / 407.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.3106, allocations: 21.09 kB / 407.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003954/0.311, allocations: 335.2 kB / 408.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.352e-06/0.311, allocations: 0 / 408.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00109/0.3121, allocations: 315.9 kB / 408.5 MB, free: 5.789 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.0002778/0.3124, allocations: 159.2 kB / 408.6 MB, free: 5.637 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.3143, allocations: 1.091 MB / 409.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3143, allocations: 0 / 409.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.3155, allocations: 0.7275 MB / 410.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006323/0.3161, allocations: 124.8 kB / 410.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002767/0.3189, allocations: 1.648 MB / 412.2 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005276/0.3194, allocations: 0.9982 MB / 413.2 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000318/0.3198, allocations: 81.47 kB / 413.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.3199, allocations: 55.42 kB / 413.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3199, allocations: 0 / 413.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of Templates: time 0.01997/0.3399, allocations: 12.54 MB / 425.9 MB, free: 4.469 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 -s gbode -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) Reference file matches