Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001377/0.001378, allocations: 105.4 kB / 18.35 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 184.1 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.337/1.337, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 55.92 kB / 282.1 MB, free: 2.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07565/0.07683, allocations: 46.62 MB / 328.7 MB, free: 3.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance): time 0.004797/0.08167, allocations: 3.734 MB / 332.5 MB, free: 24 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.08407, allocations: 1.476 MB / 333.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.08429, allocations: 8 kB / 334 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.08596, allocations: 0.7545 MB / 334.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001099/0.08707, allocations: 0.5597 MB / 335.3 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000779/0.08786, allocations: 426.5 kB / 335.7 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004592/0.08833, allocations: 485.9 kB / 336.2 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005772/0.08892, allocations: 405.8 kB / 336.6 MB, free: 11.92 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.08921, allocations: 219.1 kB / 336.8 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003007/0.08952, allocations: 278.9 kB / 337 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.703e-05/0.08958, allocations: 44 kB / 337.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000381/0.08997, allocations: 211.8 kB / 337.3 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.835e-05/0.09007, allocations: 111.6 kB / 337.4 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002059/0.09028, allocations: 246.7 kB / 337.6 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007203/0.09101, allocations: 0.7008 MB / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09103, allocations: 4 kB / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09103, allocations: 0 / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.09105, allocations: 0 / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.00204/0.09309, allocations: 0.9247 MB / 339.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.09314, allocations: 19.97 kB / 339.3 MB, free: 9.129 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004244/0.09739, allocations: 0.5818 MB / 339.9 MB, free: 8.547 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.09783, allocations: 315.7 kB / 340.2 MB, free: 8.199 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.565e-05/0.09788, allocations: 41.69 kB / 340.2 MB, free: 8.156 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.677e-05/0.09798, allocations: 60.28 kB / 340.3 MB, free: 8.098 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009645/0.09895, allocations: 0.5647 MB / 340.8 MB, free: 7.531 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.09898, allocations: 0 / 340.8 MB, free: 7.531 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.486e-05/0.09904, allocations: 24 kB / 340.9 MB, free: 7.508 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.09906, allocations: 16 kB / 340.9 MB, free: 7.492 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.1002, allocations: 0.6298 MB / 341.5 MB, free: 6.859 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002992/0.1032, allocations: 2.03 MB / 343.5 MB, free: 4.691 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.1056, allocations: 3.016 MB / 346.6 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003614/0.106, allocations: 218.1 kB / 346.8 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.956e-05/0.1061, allocations: 89.53 kB / 346.9 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.1061, allocations: 35 kB / 346.9 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/0.1061, allocations: 0 / 346.9 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.001856/0.108, allocations: 0.8049 MB / 347.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/0.108, allocations: 55.84 kB / 347.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.1082, allocations: 201.1 kB / 347.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.1082, allocations: 29.7 kB / 348 MB, free: 15.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1084, allocations: 252 kB / 348.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.1085, allocations: 165.6 kB / 348.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.1086, allocations: 94.14 kB / 348.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.1088, allocations: 338.8 kB / 348.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002987/0.1091, allocations: 157 kB / 349 MB, free: 14.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003935/0.1095, allocations: 277.9 kB / 349.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007098/0.1102, allocations: 460.5 kB / 349.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1102, allocations: 0 / 349.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001095/0.1113, allocations: 0.586 MB / 350.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1113, allocations: 11.94 kB / 350.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.1114, allocations: 4.406 kB / 350.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003421/0.1117, allocations: 92.8 kB / 350.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004033/0.1121, allocations: 107.8 kB / 350.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/0.1142, allocations: 2.033 MB / 352.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.1145, allocations: 63.36 kB / 352.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.1145, allocations: 20 kB / 352.6 MB, free: 10.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (58): * Single equations (assignments): 57 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002583/0.1148, allocations: 165.7 kB / 352.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.531e-05/0.1149, allocations: 27.72 kB / 352.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.116, allocations: 0.5589 MB / 353.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.116, allocations: 4 kB / 353.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.1161, allocations: 11.94 kB / 353.4 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1161, allocations: 3.984 kB / 353.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/0.1178, allocations: 1.135 MB / 354.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.1178, allocations: 0 / 354.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003415/0.1181, allocations: 79.89 kB / 354.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002732/0.1184, allocations: 84.81 kB / 354.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/0.1184, allocations: 11.98 kB / 354.7 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00195/0.1204, allocations: 2.046 MB / 356.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1204, allocations: 0 / 356.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.1217, allocations: 0.8009 MB / 357.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.99e-05/0.1218, allocations: 112.7 kB / 357.6 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.204e-05/0.1219, allocations: 8 kB / 357.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.1221, allocations: 19.98 kB / 357.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.405e-05/0.1222, allocations: 32.39 kB / 357.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.807e-05/0.1222, allocations: 12 kB / 357.7 MB, free: 5.375 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001317/0.1224, allocations: 154.9 kB / 357.9 MB, free: 5.223 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1224, allocations: 0 / 357.9 MB, free: 5.223 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006032/0.123, allocations: 159.6 kB / 358 MB, free: 5.066 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000225/0.1232, allocations: 139.2 kB / 358.1 MB, free: 4.918 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.1243, allocations: 0.5899 MB / 358.7 MB, free: 4.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1243, allocations: 0 / 358.7 MB, free: 4.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005787/0.1249, allocations: 389.1 kB / 359.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.1252, allocations: 39.92 kB / 359.2 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.1266, allocations: 0.8333 MB / 360 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.1271, allocations: 0.8249 MB / 360.8 MB, free: 2.164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001808/0.1272, allocations: 51.25 kB / 360.9 MB, free: 2.117 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.896e-05/0.1273, allocations: 35.44 kB / 360.9 MB, free: 2.082 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1273, allocations: 4 kB / 360.9 MB, free: 2.078 MB / 302.1 MB Notification: Performance of Templates: time 0.008314/0.1357, allocations: 4.364 MB / 365.3 MB, free: 13.71 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches