Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.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.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001307/0.001307, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001514, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2518, allocations: 50.54 MB / 409.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance): time 0.00496/0.2568, allocations: 3.702 MB / 412.9 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.2591, allocations: 1.491 MB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.2592, allocations: 12 kB / 414.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001753/0.261, allocations: 0.7389 MB / 415.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008354/0.2619, allocations: 393.6 kB / 415.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009614/0.2628, allocations: 0.5558 MB / 416.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/0.2633, allocations: 462 kB / 416.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006847/0.264, allocations: 469.6 kB / 417 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003287/0.2643, allocations: 223.1 kB / 417.3 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003249/0.2646, allocations: 279 kB / 417.5 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.606e-05/0.2647, allocations: 44 kB / 417.6 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003961/0.2651, allocations: 215.8 kB / 417.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.44e-05/0.2652, allocations: 107.6 kB / 417.9 MB, free: 8.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002205/0.2655, allocations: 238.8 kB / 418.1 MB, free: 8.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007375/0.2662, allocations: 0.6944 MB / 418.8 MB, free: 7.973 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2662, allocations: 0 / 418.8 MB, free: 7.973 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2662, allocations: 0 / 418.8 MB, free: 7.973 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.2662, allocations: 0 / 418.8 MB, free: 7.973 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.00206/0.2683, allocations: 0.9209 MB / 419.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.2683, allocations: 8.031 kB / 419.7 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003534/0.2719, allocations: 500 kB / 420.2 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000466/0.2724, allocations: 307.6 kB / 420.5 MB, free: 6.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.348e-05/0.2724, allocations: 45.62 kB / 420.6 MB, free: 6.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.867e-05/0.2725, allocations: 52.38 kB / 420.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009344/0.2734, allocations: 0.5259 MB / 421.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.2735, allocations: 0 / 421.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.271e-05/0.2735, allocations: 24 kB / 421.2 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.2735, allocations: 12 kB / 421.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000966/0.2745, allocations: 0.5829 MB / 421.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.2772, allocations: 1.942 MB / 423.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/0.2792, allocations: 2.174 MB / 425.9 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004509/0.2796, allocations: 266.1 kB / 426.1 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000144/0.2798, allocations: 174.6 kB / 426.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.2798, allocations: 35 kB / 426.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 1.834e-06/0.2798, allocations: 0 / 426.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.001721/0.2815, allocations: 0.7426 MB / 427.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.2816, allocations: 55.84 kB / 427.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.2818, allocations: 198.1 kB / 427.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.2818, allocations: 29.7 kB / 427.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.282, allocations: 220.5 kB / 427.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.2821, allocations: 157.7 kB / 427.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.2822, allocations: 86.25 kB / 427.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.2823, allocations: 330.8 kB / 428.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/0.2826, allocations: 157 kB / 428.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.283, allocations: 242.5 kB / 428.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006311/0.2836, allocations: 412.8 kB / 428.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.2836, allocations: 0 / 428.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009642/0.2846, allocations: 0.5355 MB / 429.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.2846, allocations: 11.94 kB / 429.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.2846, allocations: 0 / 429.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003387/0.285, allocations: 88.98 kB / 429.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003686/0.2853, allocations: 95.83 kB / 429.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.2871, allocations: 1.775 MB / 431.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.2873, allocations: 51.52 kB / 431.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.839e-05/0.2874, allocations: 12 kB / 431.5 MB, free: 10.33 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.2875, allocations: 177.7 kB / 431.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.2876, allocations: 27.62 kB / 431.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00103/0.2886, allocations: 0.5357 MB / 432.2 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.2887, allocations: 7.984 kB / 432.2 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.2887, allocations: 4 kB / 432.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.2887, allocations: 0 / 432.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001592/0.2903, allocations: 1.144 MB / 433.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.2903, allocations: 3.938 kB / 433.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003228/0.2906, allocations: 75.89 kB / 433.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002498/0.2909, allocations: 84.81 kB / 433.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.2909, allocations: 11.98 kB / 433.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.2925, allocations: 1.758 MB / 435.3 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2925, allocations: 0 / 435.3 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.2937, allocations: 0.8028 MB / 436.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.581e-05/0.2938, allocations: 108.7 kB / 436.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.2939, allocations: 15.94 kB / 436.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.2941, allocations: 24.05 kB / 436.3 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.918e-05/0.2942, allocations: 36.33 kB / 436.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.2943, allocations: 19.94 kB / 436.3 MB, free: 5.234 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001002/0.2944, allocations: 131.2 kB / 436.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2944, allocations: 0 / 436.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004747/0.2948, allocations: 155.5 kB / 436.6 MB, free: 4.953 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (currentSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00022/0.2951, allocations: 147.1 kB / 436.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009789/0.2961, allocations: 0.5697 MB / 437.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2961, allocations: 0 / 437.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005489/0.2966, allocations: 385.7 kB / 437.7 MB, free: 3.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.297, allocations: 30.91 kB / 437.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.2982, allocations: 0.8052 MB / 438.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.2985, allocations: 0.8122 MB / 439.3 MB, free: 2.129 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001739/0.2987, allocations: 46.95 kB / 439.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.73e-05/0.2988, allocations: 35.44 kB / 439.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2988, allocations: 0 / 439.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of Templates: time 0.00808/0.3069, allocations: 4.38 MB / 443.8 MB, free: 13.67 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches