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.001284/0.001284, allocations: 118.7 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001596/0.001596, allocations: 203.9 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2875, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.005732/0.2933, allocations: 3.697 MB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002902/0.2962, allocations: 1.479 MB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004864/0.2968, allocations: 12 kB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002312/0.2991, allocations: 0.7542 MB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00125/0.3004, allocations: 394 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.3017, allocations: 0.5475 MB / 415.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008329/0.3026, allocations: 470 kB / 416.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008099/0.3034, allocations: 380.9 kB / 416.5 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004408/0.3038, allocations: 207.3 kB / 416.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004093/0.3043, allocations: 270.9 kB / 416.9 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.3044, allocations: 40 kB / 417 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005898/0.305, allocations: 219.8 kB / 417.2 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.3051, allocations: 107.6 kB / 417.3 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002771/0.3054, allocations: 230.9 kB / 417.5 MB, free: 8.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.3065, allocations: 0.6888 MB / 418.2 MB, free: 8.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3065, allocations: 0 / 418.2 MB, free: 8.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.3066, allocations: 0 / 418.2 MB, free: 8.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.189e-05/0.3066, allocations: 0 / 418.2 MB, free: 8.027 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.002471/0.3091, allocations: 0.92 MB / 419.1 MB, free: 7.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.3091, allocations: 8.031 kB / 419.1 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001965/0.3093, allocations: 99.97 kB / 419.2 MB, free: 6.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003623/0.313, allocations: 0.4884 MB / 419.7 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005691/0.3135, allocations: 307.7 kB / 420 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.055e-05/0.3136, allocations: 41.69 kB / 420.1 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.3137, allocations: 52.33 kB / 420.1 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.3148, allocations: 0.5257 MB / 420.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.7e-05/0.3148, allocations: 0 / 420.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.576e-05/0.3149, allocations: 24 kB / 420.7 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.3149, allocations: 12 kB / 420.7 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.316, allocations: 0.5673 MB / 421.2 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003338/0.3194, allocations: 1.949 MB / 423.2 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002189/0.3216, allocations: 2.188 MB / 425.4 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003864/0.322, allocations: 214.1 kB / 425.6 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001702/0.3222, allocations: 170.6 kB / 425.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.3223, allocations: 38.98 kB / 425.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.365e-06/0.3223, allocations: 3.938 kB / 425.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002099/0.3244, allocations: 0.7857 MB / 426.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.3245, allocations: 63.78 kB / 426.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.3247, allocations: 190.2 kB / 426.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.311e-05/0.3247, allocations: 37.7 kB / 426.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.3249, allocations: 229 kB / 427.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.3251, allocations: 166.5 kB / 427.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.3252, allocations: 82.25 kB / 427.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.3254, allocations: 334.8 kB / 427.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.3257, allocations: 149 kB / 427.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003522/0.3261, allocations: 232.8 kB / 428 MB, free: 13.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006708/0.3267, allocations: 395.4 kB / 428.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3268, allocations: 4 kB / 428.4 MB, free: 13 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001072/0.3278, allocations: 0.5396 MB / 429 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.3279, allocations: 4 kB / 429 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.3279, allocations: 4 kB / 429 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003938/0.3283, allocations: 88.8 kB / 429.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/0.3287, allocations: 91.89 kB / 429.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002279/0.331, allocations: 2.041 MB / 431.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/0.3313, allocations: 43.73 kB / 431.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.3314, allocations: 19.94 kB / 431.2 MB, free: 10.03 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.0002541/0.3317, allocations: 181.6 kB / 431.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.182e-05/0.3318, allocations: 27.81 kB / 431.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.3329, allocations: 0.5357 MB / 432 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.3329, allocations: 4 kB / 432 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.3329, allocations: 4 kB / 432 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.3329, allocations: 3.938 kB / 432 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001851/0.3348, allocations: 1.139 MB / 433.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3348, allocations: 0 / 433.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003354/0.3352, allocations: 79.89 kB / 433.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003115/0.3355, allocations: 88.8 kB / 433.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.669e-05/0.3356, allocations: 8 kB / 433.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00232/0.3379, allocations: 2.037 MB / 435.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.3379, allocations: 4.031 kB / 435.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.3394, allocations: 0.7894 MB / 436.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.3396, allocations: 112.8 kB / 436.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.744e-05/0.3396, allocations: 16.25 kB / 436.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.3399, allocations: 19.98 kB / 436.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.34, allocations: 36.33 kB / 436.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.128e-05/0.3401, allocations: 16 kB / 436.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001367/0.3402, allocations: 132.2 kB / 436.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3402, allocations: 0 / 436.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006555/0.3409, allocations: 147.7 kB / 436.6 MB, free: 4.41 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.001893/0.3428, allocations: 1.376 MB / 438 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.3442, allocations: 0.5737 MB / 438.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3442, allocations: 0 / 438.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006829/0.3449, allocations: 381.4 kB / 438.9 MB, free: 2.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.3453, allocations: 27.98 kB / 439 MB, free: 2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005486/0.3508, allocations: 3.41 MB / 442.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004883/0.3514, allocations: 0.8084 MB / 443.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002194/0.3516, allocations: 46.95 kB / 443.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002158/0.3518, allocations: 135.4 kB / 443.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3518, allocations: 0 / 443.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03353/0.3854, allocations: 7.666 MB / 451 MB, free: 5.965 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.877/10.26, allocations: 4.062 kB / 451 MB, free: 5.961 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.0.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