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.001839/0.001839, allocations: 114 kB / 20.43 MB, free: 1.457 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.002829/0.002829, allocations: 214.7 kB / 23.74 MB, free: 4.672 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.473/1.473, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.002123/0.002123, allocations: 67.89 kB / 377.8 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2668, allocations: 53.4 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007482/0.2742, allocations: 5.441 MB / 436.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003599/0.2778, allocations: 1.523 MB / 438.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008702/0.2787, allocations: 39.69 kB / 438.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007895/0.2795, allocations: 217.8 kB / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001149/0.2807, allocations: 194 kB / 438.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.2819, allocations: 439 kB / 439 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001736/0.2837, allocations: 1.119 MB / 440.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006982/0.2844, allocations: 342.6 kB / 440.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007536/0.2851, allocations: 410.3 kB / 440.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007104/0.2858, allocations: 433.5 kB / 441.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00019/0.286, allocations: 84 kB / 441.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002984/0.2863, allocations: 108 kB / 441.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002276/0.2865, allocations: 215 kB / 441.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006636/0.2872, allocations: 0.4971 MB / 442.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001721/0.2889, allocations: 1.186 MB / 443.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.2889, allocations: 0 / 443.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2889, allocations: 4 kB / 443.4 MB, free: 10.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.834e-05/0.289, allocations: 0 / 443.4 MB, free: 10.4 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.002446/0.2914, allocations: 1.271 MB / 444.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.2915, allocations: 12.03 kB / 444.7 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001949/0.2917, allocations: 152.2 kB / 444.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004161/0.2921, allocations: 155.1 kB / 445 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001313/0.2934, allocations: 0.5821 MB / 445.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.871e-05/0.2935, allocations: 77.94 kB / 445.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.2936, allocations: 96 kB / 445.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001839/0.2954, allocations: 1.031 MB / 446.8 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.219e-05/0.2955, allocations: 7.938 kB / 446.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.902e-05/0.2956, allocations: 44 kB / 446.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.941e-05/0.2956, allocations: 28 kB / 446.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.2969, allocations: 0.55 MB / 447.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005953/0.3028, allocations: 5.416 MB / 452.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006251/0.3034, allocations: 236.4 kB / 453 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003492/0.3038, allocations: 137.7 kB / 453.2 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001237/0.3039, allocations: 12.27 kB / 453.2 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.774e-05/0.304, allocations: 42.5 kB / 453.2 MB, free: 68 kB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 3.447e-06/0.304, allocations: 0 / 453.2 MB, free: 68 kB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.004431/0.3084, allocations: 1.59 MB / 454.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.293e-05/0.3085, allocations: 85.05 kB / 454.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009973/0.3095, allocations: 0.6451 MB / 455.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.3095, allocations: 29.7 kB / 455.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004997/0.31, allocations: 0.6161 MB / 456.2 MB, free: 13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.3102, allocations: 154.8 kB / 456.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.3104, allocations: 138.5 kB / 456.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002417/0.3106, allocations: 386.8 kB / 456.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003512/0.3109, allocations: 157.8 kB / 457 MB, free: 12.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007106/0.3117, allocations: 0.4894 MB / 457.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.3127, allocations: 0.6927 MB / 458.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/0.3127, allocations: 4 kB / 458.2 MB, free: 10.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001319/0.314, allocations: 0.7179 MB / 458.9 MB, free: 9.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.3141, allocations: 8 kB / 458.9 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.286e-05/0.3141, allocations: 15.98 kB / 458.9 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.671e-05/0.3141, allocations: 16.66 kB / 459 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006641/0.3148, allocations: 211.6 kB / 459.2 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.375e-05/0.3148, allocations: 23.92 kB / 459.2 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000392/0.3152, allocations: 31.98 kB / 459.2 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-05/0.3153, allocations: 36 kB / 459.3 MB, free: 9.594 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.0003391/0.3156, allocations: 229.5 kB / 459.5 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.3157, allocations: 79.48 kB / 459.6 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001442/0.3159, allocations: 82.61 kB / 459.6 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.3159, allocations: 15.94 kB / 459.7 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3159, allocations: 3.938 kB / 459.7 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3159, allocations: 0 / 459.7 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.3181, allocations: 1.28 MB / 460.9 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3181, allocations: 0 / 460.9 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/0.3186, allocations: 103.9 kB / 461 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.258e-06/0.3186, allocations: 7.938 kB / 461 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/0.3186, allocations: 8.156 kB / 461.1 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.137e-06/0.3186, allocations: 15.92 kB / 461.1 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3186, allocations: 0 / 461.1 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.3197, allocations: 0.7052 MB / 461.8 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.3198, allocations: 71.42 kB / 461.8 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.692e-05/0.3199, allocations: 8 kB / 461.9 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003046/0.3202, allocations: 28.02 kB / 461.9 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.765e-05/0.3203, allocations: 31.95 kB / 461.9 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.3203, allocations: 8 kB / 461.9 MB, free: 6.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005335/0.3208, allocations: 427 kB / 462.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3208, allocations: 0 / 462.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007328/0.3215, allocations: 140 kB / 462.5 MB, free: 6.273 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.001423/0.323, allocations: 1.258 MB / 463.7 MB, free: 4.977 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008826/0.3238, allocations: 417.1 kB / 464.1 MB, free: 4.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3238, allocations: 1.875 kB / 464.1 MB, free: 4.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.3241, allocations: 144.1 kB / 464.3 MB, free: 4.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005484/0.3247, allocations: 75.3 kB / 464.4 MB, free: 4.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008663/0.3333, allocations: 6.153 MB / 470.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007019/0.3341, allocations: 1.004 MB / 471.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002964/0.3343, allocations: 98.05 kB / 471.6 MB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004822/0.3348, allocations: 387.3 kB / 472 MB, free: 12.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3348, allocations: 3.938 kB / 472 MB, free: 12.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04843/0.3833, allocations: 12.35 MB / 484.3 MB, free: 15.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.91, allocations: 3.562 kB / 484.3 MB, free: 15.95 MB / 398.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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: 14.834690237883478]