Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.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.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier") translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001143/0.001143, allocations: 98.48 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001567/0.001568, allocations: 193 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.7 MB / 246.4 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003236, allocations: 8 kB / 307.1 MB, free: 1.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1262, allocations: 51.52 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004148/0.1304, allocations: 3.679 MB / 362.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.1321, allocations: 0.9896 MB / 363.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001954/0.1323, allocations: 11.94 kB / 363.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001895/0.1325, allocations: 67.44 kB / 363.4 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004042/0.1329, allocations: 170.6 kB / 363.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002974/0.1332, allocations: 131.8 kB / 363.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006396/0.1338, allocations: 0.6853 MB / 364.4 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000303/0.1341, allocations: 178.5 kB / 364.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003194/0.1345, allocations: 243 kB / 364.8 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003239/0.1348, allocations: 286.8 kB / 365.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.487e-05/0.1349, allocations: 36 kB / 365.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.135, allocations: 39.98 kB / 365.1 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.1351, allocations: 115.5 kB / 365.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.1353, allocations: 133.3 kB / 365.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004953/0.1358, allocations: 0.5141 MB / 365.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.1358, allocations: 4 kB / 365.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1358, allocations: 0 / 365.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.1358, allocations: 0 / 365.9 MB, free: 6.316 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00133/0.1371, allocations: 0.8261 MB / 366.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.1372, allocations: 12.02 kB / 366.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003535/0.1375, allocations: 103.1 kB / 366.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.138, allocations: 376.9 kB / 367.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.015e-05/0.1381, allocations: 45.25 kB / 367.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.515e-05/0.1382, allocations: 52 kB / 367.3 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009257/0.1391, allocations: 0.553 MB / 367.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.1391, allocations: 0 / 367.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.554e-05/0.1392, allocations: 20 kB / 367.9 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.1392, allocations: 12 kB / 367.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008065/0.14, allocations: 463.6 kB / 368.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002697/0.1427, allocations: 2.061 MB / 370.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009702/0.1437, allocations: 0.6425 MB / 371 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005977/0.1443, allocations: 418.1 kB / 371.4 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.211e-05/0.1444, allocations: 8.562 kB / 371.4 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.1444, allocations: 35.12 kB / 371.5 MB, free: 488 kB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 1.753e-06/0.1444, allocations: 4 kB / 371.5 MB, free: 484 kB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.2424/0.3868, allocations: 2.051 MB / 373.5 MB, free: 18.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.3869, allocations: 64.12 kB / 373.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004022/0.3873, allocations: 364.5 kB / 374 MB, free: 18.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.3873, allocations: 38.64 kB / 374 MB, free: 18.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.3875, allocations: 235 kB / 374.2 MB, free: 18.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.3876, allocations: 196.9 kB / 374.4 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.3876, allocations: 11.09 kB / 374.4 MB, free: 18.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.72e-05/0.3877, allocations: 360.2 kB / 374.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003746/0.3881, allocations: 170.5 kB / 374.9 MB, free: 18.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003767/0.3885, allocations: 220.2 kB / 375.2 MB, free: 18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003634/0.3889, allocations: 181.1 kB / 375.3 MB, free: 17.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3889, allocations: 0 / 375.3 MB, free: 17.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001183/0.3901, allocations: 0.6738 MB / 376 MB, free: 17.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3901, allocations: 9.5 kB / 376 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3901, allocations: 0.7969 kB / 376 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006705/0.3908, allocations: 249.8 kB / 376.3 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.3911, allocations: 73.67 kB / 376.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004851/0.3959, allocations: 6.77 MB / 383.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.3962, allocations: 26.03 kB / 383.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.43e-05/0.3962, allocations: 15.59 kB / 383.1 MB, free: 11.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001921/0.3964, allocations: 174.6 kB / 383.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.334e-05/0.3965, allocations: 49.09 kB / 383.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.3966, allocations: 67.12 kB / 383.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.3967, allocations: 9.984 kB / 383.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.3967, allocations: 5.969 kB / 383.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.3967, allocations: 2.906 kB / 383.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002002/0.3987, allocations: 1.35 MB / 384.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.3987, allocations: 0.7031 kB / 384.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.399, allocations: 62.81 kB / 384.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005794/0.3996, allocations: 262.8 kB / 385.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.3996, allocations: 15.88 kB / 385.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004784/0.4044, allocations: 6.787 MB / 391.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4044, allocations: 0 / 391.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.4061, allocations: 1.036 MB / 393 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.4063, allocations: 158.8 kB / 393.1 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.955e-05/0.4064, allocations: 16 kB / 393.1 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.4066, allocations: 19.36 kB / 393.1 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.4067, allocations: 55 kB / 393.2 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.044e-05/0.4068, allocations: 19.56 kB / 393.2 MB, free: 3.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000276/0.4071, allocations: 255.8 kB / 393.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4071, allocations: 1.375 kB / 393.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008887/0.408, allocations: 175 kB / 393.6 MB, free: 3.402 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001379/0.4081, allocations: 115.4 kB / 393.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001478/0.4096, allocations: 1.042 MB / 394.8 MB, free: 2.625 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4096, allocations: 0.6875 kB / 394.8 MB, free: 2.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009909/0.4106, allocations: 0.8437 MB / 395.6 MB, free: 2.008 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005247/0.4111, allocations: 89.56 kB / 395.7 MB, free: 1.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.4134, allocations: 1.516 MB / 397.2 MB, free: 1.035 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000434/0.4139, allocations: 0.8802 MB / 398.1 MB, free: 336 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001861/0.4141, allocations: 55.14 kB / 398.2 MB, free: 320 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.088e-05/0.4141, allocations: 29.08 kB / 398.2 MB, free: 312 kB / 302.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4142, allocations: 3.938 kB / 398.2 MB, free: 308 kB / 302.1 MB Notification: Performance of Templates: time 0.01473/0.4289, allocations: 7.872 MB / 406.1 MB, free: 13.1 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches