Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001042/0.001043, allocations: 96.33 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.00112, allocations: 207.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.3 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002868/0.0002868, allocations: 8 kB / 306.6 MB, free: 1.418 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1183, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004654/0.123, allocations: 4.445 MB / 362.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.1253, allocations: 1.462 MB / 364 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003297/0.1256, allocations: 27.81 kB / 364 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.1258, allocations: 103.1 kB / 364.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004849/0.1263, allocations: 239.1 kB / 364.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.1269, allocations: 295.6 kB / 364.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008134/0.1277, allocations: 0.7571 MB / 365.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004494/0.1281, allocations: 350.2 kB / 365.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000364/0.1285, allocations: 314.5 kB / 366 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000342/0.1289, allocations: 357.9 kB / 366.4 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.738e-05/0.1289, allocations: 40 kB / 366.4 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.1291, allocations: 59.94 kB / 366.5 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.1292, allocations: 155.2 kB / 366.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.1294, allocations: 197.1 kB / 366.8 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006433/0.13, allocations: 0.7793 MB / 367.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.13, allocations: 4 kB / 367.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.13, allocations: 0 / 367.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1301, allocations: 0 / 367.6 MB, free: 4.328 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001535/0.1316, allocations: 1.122 MB / 368.7 MB, free: 3.156 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1316, allocations: 8.031 kB / 368.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003439/0.132, allocations: 154.4 kB / 368.9 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007998/0.1328, allocations: 0.584 MB / 369.5 MB, free: 2.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.014e-05/0.1329, allocations: 74 kB / 369.5 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.133, allocations: 99.91 kB / 369.6 MB, free: 2.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.1346, allocations: 1.023 MB / 370.7 MB, free: 1.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.971e-05/0.1346, allocations: 7.938 kB / 370.7 MB, free: 1.047 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.088e-05/0.1347, allocations: 44 kB / 370.7 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/0.1347, allocations: 28 kB / 370.7 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.1358, allocations: 0.5617 MB / 371.3 MB, free: 428 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2451/0.3809, allocations: 5.52 MB / 376.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007171/0.3817, allocations: 235.3 kB / 377.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001584/0.3818, allocations: 89.39 kB / 377.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.3819, allocations: 39.92 kB / 377.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.314e-06/0.3819, allocations: 0 / 377.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004485/0.3864, allocations: 1.727 MB / 378.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.3864, allocations: 82.58 kB / 379 MB, free: 13.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009487/0.3874, allocations: 0.6259 MB / 379.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.992e-05/0.3875, allocations: 35.08 kB / 379.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003914/0.3879, allocations: 0.5949 MB / 380.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.388, allocations: 146.8 kB / 380.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.15e-05/0.388, allocations: 10.75 kB / 380.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3881, allocations: 388.1 kB / 380.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003098/0.3884, allocations: 159.1 kB / 380.9 MB, free: 12.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.3889, allocations: 0.4933 MB / 381.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004017/0.3893, allocations: 233.8 kB / 381.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.3893, allocations: 2.75 kB / 381.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001206/0.3905, allocations: 0.7192 MB / 382.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.3906, allocations: 10.56 kB / 382.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.3906, allocations: 11.97 kB / 382.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.701e-05/0.3906, allocations: 17.91 kB / 382.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007255/0.3914, allocations: 199 kB / 382.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.539e-05/0.3914, allocations: 20.75 kB / 382.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004426/0.3919, allocations: 36.2 kB / 382.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.546e-05/0.3919, allocations: 41.14 kB / 382.7 MB, free: 11.67 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (94): * Single equations (assignments): 94 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003717/0.3923, allocations: 226.4 kB / 382.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.3924, allocations: 72.72 kB / 383 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001647/0.3926, allocations: 82.14 kB / 383.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.3926, allocations: 5.266 kB / 383.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/0.3927, allocations: 1.531 kB / 383.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.3927, allocations: 2.391 kB / 383.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.3956, allocations: 1.302 MB / 384.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3956, allocations: 0 / 384.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005162/0.3961, allocations: 107.4 kB / 384.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.207e-05/0.3961, allocations: 10.73 kB / 384.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.942e-05/0.3962, allocations: 8.516 kB / 384.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.193e-06/0.3962, allocations: 3.453 kB / 384.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3962, allocations: 2.016 kB / 384.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.3973, allocations: 0.7173 MB / 385.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001492/0.3975, allocations: 136.4 kB / 385.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.164e-05/0.3975, allocations: 7.531 kB / 385.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002837/0.3978, allocations: 28.08 kB / 385.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.962e-05/0.3979, allocations: 22.67 kB / 385.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.721e-05/0.3979, allocations: 20.41 kB / 385.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006571/0.3986, allocations: 413.8 kB / 385.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3986, allocations: 0 / 385.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001054/0.3997, allocations: 140.3 kB / 386 MB, free: 9.867 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * 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 (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000186/0.3999, allocations: 105.3 kB / 386.1 MB, free: 9.773 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.4009, allocations: 449.7 kB / 386.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4009, allocations: 0 / 386.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003267/0.4013, allocations: 161.6 kB / 386.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.4017, allocations: 73.31 kB / 386.8 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/0.4053, allocations: 2.038 MB / 388.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007739/0.406, allocations: 1.03 MB / 389.8 MB, free: 7.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003673/0.4064, allocations: 91.88 kB / 389.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.4066, allocations: 66.91 kB / 390 MB, free: 7.465 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4066, allocations: 0 / 390 MB, free: 7.465 MB / 302.1 MB Notification: Performance of Templates: time 0.01394/0.4206, allocations: 4.509 MB / 394.5 MB, free: 6.016 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches