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.001331/0.001331, allocations: 116.5 kB / 18.5 MB, free: 4.434 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.001391/0.001391, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.502/1.502, allocations: 230.2 MB / 254.5 MB, free: 15.26 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.001854/0.001854, allocations: 64.12 kB / 373.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1074, allocations: 53.33 MB / 426.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.2307/0.3381, allocations: 5.412 MB / 432.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002914/0.341, allocations: 1.525 MB / 433.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005201/0.3415, allocations: 28.56 kB / 433.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004149/0.3419, allocations: 215.9 kB / 433.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005175/0.3425, allocations: 198.9 kB / 434.1 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008391/0.3433, allocations: 412.2 kB / 434.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009413/0.3442, allocations: 1.129 MB / 435.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004911/0.3447, allocations: 335.5 kB / 435.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005011/0.3452, allocations: 398 kB / 436.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004267/0.3457, allocations: 445.5 kB / 436.8 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.3458, allocations: 83 kB / 436.8 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002233/0.346, allocations: 103.9 kB / 436.9 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.3461, allocations: 209.6 kB / 437.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000367/0.3465, allocations: 0.4991 MB / 437.6 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00131/0.3478, allocations: 1.188 MB / 438.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3478, allocations: 0 / 438.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3478, allocations: 1.062 kB / 438.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.913e-05/0.3478, allocations: 0.6094 kB / 438.8 MB, free: 5.719 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.001843/0.3497, allocations: 1.347 MB / 440.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.3497, allocations: 9.844 kB / 440.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001535/0.3499, allocations: 151.9 kB / 440.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003411/0.3502, allocations: 150 kB / 440.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.3514, allocations: 0.6694 MB / 441.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.219e-05/0.3514, allocations: 81.41 kB / 441.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.3515, allocations: 96.84 kB / 441.3 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/0.3531, allocations: 1.029 MB / 442.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.339e-05/0.3532, allocations: 8.094 kB / 442.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.454e-05/0.3532, allocations: 43.34 kB / 442.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.801e-05/0.3533, allocations: 28.67 kB / 442.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.3544, allocations: 0.5551 MB / 443 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005293/0.3596, allocations: 5.5 MB / 448.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006741/0.3603, allocations: 223.4 kB / 448.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003458/0.3607, allocations: 151.1 kB / 448.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001714/0.3608, allocations: 88 kB / 448.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.3609, allocations: 32.78 kB / 449 MB, free: 14.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 2.886e-06/0.3609, allocations: 4 kB / 449 MB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.004555/0.3654, allocations: 1.743 MB / 450.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.3655, allocations: 85.02 kB / 450.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000862/0.3664, allocations: 0.6422 MB / 451.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.3664, allocations: 31.05 kB / 451.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004905/0.3669, allocations: 0.6184 MB / 452.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.367, allocations: 155.3 kB / 452.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/0.3672, allocations: 139.1 kB / 452.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002395/0.3675, allocations: 387.5 kB / 452.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003343/0.3678, allocations: 152.5 kB / 452.9 MB, free: 11.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000739/0.3685, allocations: 0.4903 MB / 453.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001189/0.3697, allocations: 0.7013 MB / 454.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/0.3697, allocations: 2.594 kB / 454.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001409/0.3711, allocations: 0.718 MB / 454.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.3712, allocations: 10.94 kB / 454.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.3712, allocations: 12.22 kB / 454.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.061e-05/0.3712, allocations: 17.25 kB / 454.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006529/0.3719, allocations: 198.5 kB / 455 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.712e-05/0.3719, allocations: 31.47 kB / 455.1 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004267/0.3724, allocations: 32.77 kB / 455.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.467e-05/0.3724, allocations: 41.41 kB / 455.2 MB, free: 10.26 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.000405/0.3728, allocations: 222.6 kB / 455.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.3729, allocations: 83.91 kB / 455.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.3731, allocations: 78.64 kB / 455.5 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.3731, allocations: 8.375 kB / 455.5 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.3731, allocations: 2.375 kB / 455.5 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.3731, allocations: 1.266 kB / 455.5 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002483/0.3756, allocations: 1.317 MB / 456.9 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3756, allocations: 1.312 kB / 456.9 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/0.3761, allocations: 99.94 kB / 457 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.3761, allocations: 8.969 kB / 457 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.371e-05/0.3761, allocations: 19.17 kB / 457 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.3761, allocations: 3.312 kB / 457 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3761, allocations: 2.75 kB / 457 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.3772, allocations: 0.7046 MB / 457.7 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.3774, allocations: 142.2 kB / 457.8 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.974e-05/0.3775, allocations: 13.7 kB / 457.8 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002923/0.3777, allocations: 24.73 kB / 457.9 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.462e-05/0.3778, allocations: 32.33 kB / 457.9 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/0.3779, allocations: 14.75 kB / 457.9 MB, free: 8.609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005639/0.3784, allocations: 425.6 kB / 458.3 MB, free: 8.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3784, allocations: 0 / 458.3 MB, free: 8.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007731/0.3792, allocations: 137.4 kB / 458.5 MB, free: 8.414 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.001475/0.3807, allocations: 1.26 MB / 459.7 MB, free: 7.434 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009415/0.3816, allocations: 415.8 kB / 460.1 MB, free: 7.305 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3816, allocations: 1.438 kB / 460.1 MB, free: 7.305 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002739/0.3819, allocations: 149 kB / 460.3 MB, free: 7.258 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005544/0.3824, allocations: 73.8 kB / 460.4 MB, free: 7.215 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009006/0.3914, allocations: 6.151 MB / 466.5 MB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007142/0.3922, allocations: 1.003 MB / 467.5 MB, free: 2.254 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003065/0.3925, allocations: 95.2 kB / 467.6 MB, free: 2.207 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004662/0.3929, allocations: 388.5 kB / 468 MB, free: 1.871 MB / 366.1 MB Notification: Performance of SimCode: time 1.383e-06/0.3929, allocations: 5.062 kB / 468 MB, free: 1.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04677/0.4397, allocations: 11.81 MB / 479.8 MB, free: 9.871 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.054/9.494, allocations: 9.156 kB / 479.8 MB, free: 9.867 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 & /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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.4837685120292]