Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002092/0.002092, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.433/1.433, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 59.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1039, allocations: 53.33 MB / 426.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.004183/0.1081, allocations: 2.915 MB / 429.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.1093, allocations: 0.7167 MB / 430 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.1095, allocations: 4 kB / 430 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.1097, allocations: 63.38 kB / 430 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.1098, allocations: 87.17 kB / 430.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.1101, allocations: 91.83 kB / 430.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004204/0.1105, allocations: 386.8 kB / 430.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002497/0.1108, allocations: 128.5 kB / 430.7 MB, free: 372 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.111, allocations: 147.5 kB / 430.8 MB, free: 224 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001947/0.1112, allocations: 163.3 kB / 431 MB, free: 60 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.524e-05/0.1113, allocations: 32 kB / 431 MB, free: 28 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1791/0.2904, allocations: 32.55 kB / 431.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.2905, allocations: 68.69 kB / 431.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002129/0.2907, allocations: 168.7 kB / 431.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005353/0.2912, allocations: 392.3 kB / 431.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2912, allocations: 0.9688 kB / 431.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2912, allocations: 0.875 kB / 431.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.2912, allocations: 0 / 431.7 MB, free: 7.926 MB / 350.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.0008754/0.2921, allocations: 0.623 MB / 432.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.2922, allocations: 10.28 kB / 432.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.845e-05/0.2922, allocations: 70.53 kB / 432.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.869e-05/0.2923, allocations: 42.36 kB / 432.4 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.2926, allocations: 265.6 kB / 432.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.2926, allocations: 21.41 kB / 432.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.599e-05/0.2927, allocations: 35.84 kB / 432.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005039/0.2932, allocations: 282.4 kB / 433 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2932, allocations: 0.5312 kB / 433 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.743e-05/0.2932, allocations: 15.12 kB / 433 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.2932, allocations: 7.125 kB / 433 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004297/0.2937, allocations: 217.8 kB / 433.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.295, allocations: 1.021 MB / 434.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.2953, allocations: 152.4 kB / 434.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/0.2955, allocations: 124.9 kB / 434.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.2955, allocations: 8.953 kB / 434.6 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.564e-05/0.2956, allocations: 37.31 kB / 434.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.333e-06/0.2956, allocations: 4.375 kB / 434.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005528/0.2961, allocations: 220.9 kB / 434.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.2961, allocations: 59.22 kB / 434.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.2963, allocations: 213.5 kB / 435.1 MB, free: 6.387 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.2963, allocations: 30.83 kB / 435.1 MB, free: 6.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.834e-05/0.2964, allocations: 192.4 kB / 435.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.394e-05/0.2965, allocations: 82.48 kB / 435.4 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-05/0.2965, allocations: 50.42 kB / 435.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.754e-05/0.2966, allocations: 333.3 kB / 435.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.2967, allocations: 67.2 kB / 435.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.2969, allocations: 142.5 kB / 436 MB, free: 5.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003392/0.2973, allocations: 223.4 kB / 436.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2973, allocations: 1.781 kB / 436.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004611/0.2977, allocations: 276.2 kB / 436.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.2978, allocations: 5.625 kB / 436.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.2978, allocations: 4.422 kB / 436.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.2978, allocations: 3.656 kB / 436.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003072/0.2981, allocations: 73.56 kB / 436.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.2981, allocations: 7.547 kB / 436.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.2983, allocations: 28.91 kB / 436.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.2983, allocations: 13.08 kB / 436.6 MB, free: 5.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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 9.659e-05/0.2984, allocations: 149.5 kB / 436.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.489e-05/0.2984, allocations: 29.48 kB / 436.8 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004015/0.2988, allocations: 196.9 kB / 436.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2988, allocations: 3.578 kB / 437 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.2988, allocations: 0 / 437 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2988, allocations: 1.891 kB / 437 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007259/0.2996, allocations: 0.6093 MB / 437.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.2996, allocations: 1.094 kB / 437.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.2998, allocations: 59.81 kB / 437.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2998, allocations: 1.312 kB / 437.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.2999, allocations: 6.422 kB / 437.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.2999, allocations: 2.062 kB / 437.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2999, allocations: 5.172 kB / 437.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005439/0.3004, allocations: 376.7 kB / 438 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.265e-05/0.3005, allocations: 100.2 kB / 438.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.118e-05/0.3005, allocations: 7.203 kB / 438.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.3007, allocations: 19.31 kB / 438.1 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.431e-05/0.3007, allocations: 16.39 kB / 438.1 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.3007, allocations: 7.406 kB / 438.2 MB, free: 4.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00012/0.3008, allocations: 155.6 kB / 438.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3008, allocations: 0 / 438.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003392/0.3012, allocations: 75.19 kB / 438.4 MB, free: 4.695 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0006926/0.3019, allocations: 0.9077 MB / 439.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004053/0.3023, allocations: 176.7 kB / 439.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3023, allocations: 0 / 439.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.3024, allocations: 79.47 kB / 439.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.3028, allocations: 34.98 kB / 439.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.3057, allocations: 2.828 MB / 442.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.3059, allocations: 0.7674 MB / 443.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.475e-05/0.306, allocations: 25.73 kB / 443.2 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.3061, allocations: 92.59 kB / 443.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3061, allocations: 0 / 443.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03029/0.3364, allocations: 4.679 MB / 448 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.008/8.344, allocations: 13.08 kB / 448 MB, free: 496 kB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sineCurrent.phi in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv. Warning: Get data of variable sineCurrent.phi from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.058691140002338]