Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001633/0.001633, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001865/0.001865, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 230.4 MB / 254 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] 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.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 63.89 kB / 373 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1209, allocations: 53.38 MB / 426.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.2338/0.3547, allocations: 5.413 MB / 431.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.3572, allocations: 1.524 MB / 433.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004761/0.3577, allocations: 36.72 kB / 433.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004117/0.3581, allocations: 223.3 kB / 433.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004649/0.3586, allocations: 196.1 kB / 433.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000705/0.3593, allocations: 419.1 kB / 434.2 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008747/0.3602, allocations: 1.12 MB / 435.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004593/0.3606, allocations: 336.3 kB / 435.6 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004752/0.3611, allocations: 419.8 kB / 436 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003816/0.3615, allocations: 433.3 kB / 436.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.3616, allocations: 83.97 kB / 436.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.3618, allocations: 103.7 kB / 436.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.362, allocations: 220.4 kB / 436.9 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003232/0.3623, allocations: 0.4921 MB / 437.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001159/0.3634, allocations: 1.187 MB / 438.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3634, allocations: 0 / 438.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3634, allocations: 0 / 438.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.307e-05/0.3635, allocations: 0 / 438.5 MB, free: 5.598 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001771/0.3652, allocations: 1.351 MB / 439.9 MB, free: 4.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.3653, allocations: 9.719 kB / 439.9 MB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001493/0.3654, allocations: 152.6 kB / 440 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003726/0.3658, allocations: 149.7 kB / 440.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009341/0.3667, allocations: 0.6717 MB / 440.9 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.419e-05/0.3668, allocations: 77.5 kB / 440.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.3669, allocations: 97.05 kB / 441 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.3684, allocations: 1.033 MB / 442.1 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.3684, allocations: 6.406 kB / 442.1 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.696e-05/0.3685, allocations: 44.88 kB / 442.1 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-05/0.3685, allocations: 26.34 kB / 442.1 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.3696, allocations: 0.5558 MB / 442.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004559/0.3741, allocations: 5.498 MB / 448.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005682/0.3747, allocations: 229.8 kB / 448.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003031/0.375, allocations: 143 kB / 448.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001462/0.3751, allocations: 96.06 kB / 448.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.3752, allocations: 33.59 kB / 448.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.773e-06/0.3752, allocations: 0 / 448.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.004193/0.3794, allocations: 1.736 MB / 450.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.225e-05/0.3794, allocations: 89.33 kB / 450.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008403/0.3803, allocations: 0.6437 MB / 451.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.3803, allocations: 31.47 kB / 451.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004883/0.3808, allocations: 0.6118 MB / 451.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.3809, allocations: 156.8 kB / 452 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.3811, allocations: 138.8 kB / 452.1 MB, free: 12.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002422/0.3814, allocations: 388.8 kB / 452.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003431/0.3817, allocations: 155.7 kB / 452.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006237/0.3823, allocations: 495.4 kB / 453.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.3833, allocations: 0.6958 MB / 453.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.3834, allocations: 4.312 kB / 453.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001257/0.3846, allocations: 0.7222 MB / 454.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.3846, allocations: 14.41 kB / 454.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/0.3847, allocations: 11.73 kB / 454.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.309e-05/0.3847, allocations: 16.38 kB / 454.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006613/0.3854, allocations: 204.8 kB / 454.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.659e-05/0.3854, allocations: 22.22 kB / 454.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003853/0.3858, allocations: 33.61 kB / 454.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.546e-05/0.3858, allocations: 40.7 kB / 454.9 MB, free: 10.14 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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.0003468/0.3862, allocations: 230 kB / 455.1 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.3863, allocations: 80.92 kB / 455.2 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001471/0.3864, allocations: 77.84 kB / 455.2 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.84e-05/0.3864, allocations: 8.641 kB / 455.3 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.3865, allocations: 1.062 kB / 455.3 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.3865, allocations: 5.953 kB / 455.3 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002408/0.3889, allocations: 1.314 MB / 456.6 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3889, allocations: 6.906 kB / 456.6 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004698/0.3894, allocations: 99.09 kB / 456.7 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.094e-05/0.3894, allocations: 7.297 kB / 456.7 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/0.3894, allocations: 13.3 kB / 456.7 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.316e-06/0.3894, allocations: 8.812 kB / 456.7 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3894, allocations: 4.125 kB / 456.7 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.3905, allocations: 0.7118 MB / 457.4 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/0.3906, allocations: 142.7 kB / 457.6 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/0.3907, allocations: 9.016 kB / 457.6 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000292/0.391, allocations: 24.83 kB / 457.6 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.401e-05/0.3911, allocations: 26.31 kB / 457.6 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.3911, allocations: 10.98 kB / 457.6 MB, free: 8.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005643/0.3917, allocations: 426.8 kB / 458 MB, free: 8.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3917, allocations: 4 kB / 458 MB, free: 8.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008005/0.3925, allocations: 138.5 kB / 458.2 MB, free: 8.281 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * 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.001528/0.394, allocations: 1.255 MB / 459.4 MB, free: 7.305 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008834/0.3949, allocations: 422.2 kB / 459.9 MB, free: 7.172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3949, allocations: 0 / 459.9 MB, free: 7.172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000284/0.3952, allocations: 153.9 kB / 460 MB, free: 7.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005656/0.3957, allocations: 67.53 kB / 460.1 MB, free: 7.082 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009209/0.4049, allocations: 6.155 MB / 466.2 MB, free: 2.918 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007445/0.4057, allocations: 1.002 MB / 467.2 MB, free: 2.086 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003221/0.406, allocations: 95.97 kB / 467.3 MB, free: 2.039 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005343/0.4065, allocations: 393.4 kB / 467.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of SimCode: time 1.273e-06/0.4065, allocations: 0 / 467.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04079/0.4473, allocations: 11.8 MB / 479.5 MB, free: 9.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.426/9.873, allocations: 0 / 479.5 MB, free: 9.664 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_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_ResonanceCircuits.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.610759543953463]