Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.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: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001372/0.001372, allocations: 118.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001501/0.001501, allocations: 202 kB / 18.72 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2793, allocations: 50.54 MB / 408.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.005664/0.285, allocations: 3.704 MB / 412.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002776/0.2878, allocations: 1.483 MB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.288, allocations: 8 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.2899, allocations: 0.7582 MB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009746/0.2909, allocations: 386 kB / 415.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.292, allocations: 0.5513 MB / 415.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005482/0.2926, allocations: 454 kB / 416.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006536/0.2932, allocations: 396.8 kB / 416.5 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.2936, allocations: 207.1 kB / 416.7 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003376/0.2939, allocations: 270.9 kB / 416.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.129e-05/0.294, allocations: 44 kB / 417 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004308/0.2944, allocations: 211.8 kB / 417.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.2946, allocations: 111.6 kB / 417.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.2948, allocations: 222.9 kB / 417.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008796/0.2957, allocations: 0.6965 MB / 418.2 MB, free: 8.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2957, allocations: 0 / 418.2 MB, free: 8.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2957, allocations: 4 kB / 418.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.2957, allocations: 0 / 418.2 MB, free: 8.086 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.002191/0.2979, allocations: 0.9161 MB / 419.1 MB, free: 7.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.298, allocations: 8.031 kB / 419.1 MB, free: 7.113 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001604/0.2981, allocations: 99.97 kB / 419.2 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003674/0.3018, allocations: 496.2 kB / 419.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005178/0.3024, allocations: 315.7 kB / 420 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.357e-05/0.3024, allocations: 37.69 kB / 420.1 MB, free: 6.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.3025, allocations: 60.33 kB / 420.1 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000998/0.3035, allocations: 0.514 MB / 420.6 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.3036, allocations: 0 / 420.6 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.3036, allocations: 20 kB / 420.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.3037, allocations: 16 kB / 420.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.3047, allocations: 0.5673 MB / 421.2 MB, free: 4.957 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.3079, allocations: 1.953 MB / 423.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/0.3103, allocations: 2.176 MB / 425.4 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003902/0.3107, allocations: 220.8 kB / 425.6 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000186/0.3109, allocations: 174.6 kB / 425.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.3109, allocations: 39 kB / 425.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 3.105e-06/0.3109, allocations: 3.938 kB / 425.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.001998/0.3129, allocations: 0.7935 MB / 426.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/0.313, allocations: 55.84 kB / 426.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.3132, allocations: 190.2 kB / 426.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.074e-05/0.3133, allocations: 33.7 kB / 426.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.3135, allocations: 225 kB / 427.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.3136, allocations: 174.5 kB / 427.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3137, allocations: 82.19 kB / 427.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3139, allocations: 334.8 kB / 427.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002997/0.3142, allocations: 149.1 kB / 427.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003812/0.3146, allocations: 232.8 kB / 428 MB, free: 13.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006795/0.3153, allocations: 399.4 kB / 428.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3153, allocations: 3.938 kB / 428.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001028/0.3163, allocations: 0.528 MB / 428.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3164, allocations: 11.94 kB / 429 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3164, allocations: 0 / 429 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000347/0.3167, allocations: 88.8 kB / 429 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000373/0.3171, allocations: 91.89 kB / 429.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002374/0.3195, allocations: 2.049 MB / 431.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.3198, allocations: 39.72 kB / 431.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.44e-05/0.3198, allocations: 19.94 kB / 431.2 MB, free: 10.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (50): * Single equations (assignments): 49 * 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.0002391/0.3201, allocations: 169.8 kB / 431.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.043e-05/0.3201, allocations: 27.81 kB / 431.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001146/0.3213, allocations: 0.5434 MB / 432 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.3213, allocations: 7.984 kB / 432 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3213, allocations: 4 kB / 432 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.3213, allocations: 7.922 kB / 432 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/0.3232, allocations: 1.135 MB / 433.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.3232, allocations: 0 / 433.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000317/0.3235, allocations: 71.91 kB / 433.2 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000287/0.3238, allocations: 92.92 kB / 433.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.3238, allocations: 16 kB / 433.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002176/0.326, allocations: 2.03 MB / 435.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.326, allocations: 0 / 435.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.3275, allocations: 0.801 MB / 436.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.592e-05/0.3276, allocations: 104.9 kB / 436.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.668e-05/0.3276, allocations: 8 kB / 436.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.3278, allocations: 28.05 kB / 436.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.532e-05/0.3279, allocations: 36.33 kB / 436.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.328, allocations: 15.98 kB / 436.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001275/0.3281, allocations: 128.2 kB / 436.5 MB, free: 4.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3281, allocations: 4 kB / 436.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005906/0.3287, allocations: 151.7 kB / 436.6 MB, free: 4.477 MB / 350.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 (42): * Single equations (assignments): 41 * 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.001863/0.3306, allocations: 1.368 MB / 438 MB, free: 3.074 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.3317, allocations: 0.5697 MB / 438.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3317, allocations: 0 / 438.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000595/0.3323, allocations: 377.4 kB / 438.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.3327, allocations: 48.23 kB / 439 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00491/0.3376, allocations: 3.412 MB / 442.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.3381, allocations: 0.8084 MB / 443.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001783/0.3383, allocations: 42.95 kB / 443.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.3385, allocations: 143.4 kB / 443.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3385, allocations: 0 / 443.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03878/0.3773, allocations: 7.651 MB / 451 MB, free: 6.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.74, allocations: 3.938 kB / 451 MB, free: 6.027 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches