Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.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.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_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.001576/0.001576, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00201/0.00201, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2448, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003932/0.2488, allocations: 2.924 MB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.25, allocations: 0.701 MB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.2502, allocations: 7.938 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.2504, allocations: 59.44 kB / 412.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.2507, allocations: 83.2 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002879/0.2509, allocations: 99.8 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003764/0.2513, allocations: 370.5 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002523/0.2516, allocations: 153.3 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002599/0.2519, allocations: 155.5 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.2521, allocations: 155.3 kB / 413.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.112e-05/0.2521, allocations: 32 kB / 413.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.345e-05/0.2522, allocations: 28 kB / 413.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.806e-05/0.2522, allocations: 79.77 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.2524, allocations: 171.2 kB / 413.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000363/0.2528, allocations: 377.4 kB / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2528, allocations: 0 / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2528, allocations: 0 / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.2528, allocations: 4 kB / 414.1 MB, free: 12.16 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009026/0.2537, allocations: 0.6118 MB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.2537, allocations: 12.03 kB / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.888e-05/0.2538, allocations: 66.72 kB / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.47e-05/0.2539, allocations: 40.7 kB / 414.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.2542, allocations: 263.8 kB / 415.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.2543, allocations: 21.03 kB / 415.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.222e-05/0.2543, allocations: 36.38 kB / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.2548, allocations: 278.1 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.2549, allocations: 4 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.871e-05/0.2549, allocations: 16 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.2549, allocations: 11.94 kB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004193/0.2553, allocations: 198.5 kB / 415.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.2567, allocations: 0.9716 MB / 416.6 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003299/0.2571, allocations: 166.6 kB / 416.8 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.2572, allocations: 80.81 kB / 416.9 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.2573, allocations: 0 / 416.9 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.2573, allocations: 34.5 kB / 416.9 MB, free: 9.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.2573, allocations: 0 / 416.9 MB, free: 9.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006593/0.258, allocations: 228.7 kB / 417.1 MB, free: 8.953 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.252e-05/0.2581, allocations: 55.41 kB / 417.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.2584, allocations: 210.7 kB / 417.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.2584, allocations: 29.7 kB / 417.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.2586, allocations: 188.4 kB / 417.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.658e-05/0.2587, allocations: 75.38 kB / 417.7 MB, free: 8.371 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.2588, allocations: 49.7 kB / 417.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.259, allocations: 334.8 kB / 418.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.2592, allocations: 55.97 kB / 418.1 MB, free: 7.926 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.2594, allocations: 122 kB / 418.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/0.2597, allocations: 193.8 kB / 418.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.2597, allocations: 3.938 kB / 418.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004886/0.2602, allocations: 237.3 kB / 418.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.2603, allocations: 8 kB / 418.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2603, allocations: 0 / 418.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.2603, allocations: 4 kB / 418.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.2606, allocations: 63.89 kB / 418.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.2606, allocations: 4 kB / 418.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.2608, allocations: 19.94 kB / 418.8 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.2608, allocations: 19.97 kB / 418.8 MB, free: 7.215 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001476/0.261, allocations: 153.7 kB / 418.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.496e-05/0.261, allocations: 19.86 kB / 418.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004096/0.2615, allocations: 197.5 kB / 419.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2615, allocations: 8 kB / 419.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.2615, allocations: 0 / 419.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.2615, allocations: 0 / 419.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003743/0.2619, allocations: 321.4 kB / 419.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.2619, allocations: 3.938 kB / 419.5 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000268/0.2622, allocations: 51.97 kB / 419.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.2622, allocations: 0 / 419.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.2622, allocations: 4 kB / 419.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2622, allocations: 0 / 419.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2622, allocations: 4 kB / 419.5 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000561/0.2628, allocations: 355.1 kB / 419.9 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.491e-05/0.2629, allocations: 104.9 kB / 420 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.275e-05/0.2629, allocations: 4.062 kB / 420 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.2631, allocations: 11.98 kB / 420 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.4e-05/0.2631, allocations: 15.98 kB / 420 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.2632, allocations: 4 kB / 420 MB, free: 5.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.2633, allocations: 144.6 kB / 420.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2633, allocations: 4 kB / 420.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003666/0.2637, allocations: 79.78 kB / 420.2 MB, free: 5.664 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000927/0.2646, allocations: 0.8868 MB / 421.1 MB, free: 4.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004318/0.265, allocations: 163.8 kB / 421.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.265, allocations: 0 / 421.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.2652, allocations: 75.91 kB / 421.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.2656, allocations: 27.94 kB / 421.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.2692, allocations: 2.709 MB / 424.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.2695, allocations: 0.7671 MB / 424.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.509e-05/0.2696, allocations: 17.94 kB / 424.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.2698, allocations: 91.41 kB / 425 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2698, allocations: 0 / 425 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0225/0.2923, allocations: 4.532 MB / 429.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.559/7.852, allocations: 3.984 kB / 429.5 MB, free: 12.34 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches