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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001209/0.001209, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001518/0.001518, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 56.09 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2542, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007363/0.2616, allocations: 5.397 MB / 414.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003257/0.2649, allocations: 1.516 MB / 415.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007849/0.2657, allocations: 23.88 kB / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000656/0.2664, allocations: 217.8 kB / 415.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000848/0.2673, allocations: 202 kB / 416.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.2684, allocations: 407.4 kB / 416.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001648/0.2701, allocations: 1.13 MB / 417.7 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000825/0.2709, allocations: 476.2 kB / 418.1 MB, free: 8.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006832/0.2716, allocations: 410.2 kB / 418.5 MB, free: 7.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005267/0.2722, allocations: 433.5 kB / 418.9 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.2723, allocations: 84 kB / 419 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000238/0.2726, allocations: 104 kB / 419.1 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.2727, allocations: 211.1 kB / 419.3 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005212/0.2733, allocations: 0.501 MB / 419.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.2746, allocations: 1.177 MB / 421 MB, free: 5.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.2746, allocations: 0 / 421 MB, free: 5.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2747, allocations: 0 / 421 MB, free: 5.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.164e-05/0.2747, allocations: 4 kB / 421 MB, free: 5.234 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002302/0.277, allocations: 1.32 MB / 422.3 MB, free: 3.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.2771, allocations: 8.031 kB / 422.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001718/0.2773, allocations: 152.2 kB / 422.5 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003709/0.2777, allocations: 146.5 kB / 422.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.2788, allocations: 0.6537 MB / 423.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.857e-05/0.2788, allocations: 81.94 kB / 423.4 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.279, allocations: 107.9 kB / 423.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/0.2807, allocations: 1.023 MB / 424.5 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.006e-05/0.2807, allocations: 11.91 kB / 424.5 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.535e-05/0.2808, allocations: 44 kB / 424.6 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.475e-05/0.2808, allocations: 28 kB / 424.6 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.2821, allocations: 0.5578 MB / 425.1 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005234/0.2873, allocations: 5.477 MB / 430.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005494/0.2879, allocations: 236.9 kB / 430.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003182/0.2882, allocations: 161.6 kB / 431 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001519/0.2884, allocations: 93.05 kB / 431.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/0.2884, allocations: 38.55 kB / 431.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.104e-06/0.2884, allocations: 0 / 431.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003846/0.2923, allocations: 1.716 MB / 432.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.2924, allocations: 85.05 kB / 432.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000664/0.293, allocations: 0.6373 MB / 433.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.2931, allocations: 29.7 kB / 433.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000361/0.2934, allocations: 0.6026 MB / 434.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.2935, allocations: 149.9 kB / 434.3 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.2937, allocations: 138.4 kB / 434.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2939, allocations: 382.8 kB / 434.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003067/0.2942, allocations: 157.9 kB / 435 MB, free: 6.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004901/0.2947, allocations: 497.1 kB / 435.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008463/0.2955, allocations: 0.7037 MB / 436.2 MB, free: 4.992 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.2955, allocations: 4 kB / 436.2 MB, free: 4.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001126/0.2967, allocations: 0.7145 MB / 436.9 MB, free: 4.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.2967, allocations: 12.03 kB / 436.9 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.2967, allocations: 12 kB / 436.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/0.2968, allocations: 16 kB / 437 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000616/0.2974, allocations: 199.6 kB / 437.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.178e-05/0.2974, allocations: 23.92 kB / 437.2 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003462/0.2978, allocations: 31.98 kB / 437.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.189e-05/0.2978, allocations: 40 kB / 437.2 MB, free: 3.941 MB / 350.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.000265/0.2981, allocations: 233.5 kB / 437.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.2982, allocations: 75.06 kB / 437.5 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.2983, allocations: 74.58 kB / 437.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.2983, allocations: 7.938 kB / 437.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2983, allocations: 4 kB / 437.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.2983, allocations: 3.984 kB / 437.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/0.3003, allocations: 1.326 MB / 439 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3003, allocations: 3.938 kB / 439 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004558/0.3008, allocations: 104 kB / 439.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.3008, allocations: 11.92 kB / 439.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.599e-05/0.3008, allocations: 8 kB / 439.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.3008, allocations: 7.938 kB / 439.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3009, allocations: 3.938 kB / 439.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009308/0.3018, allocations: 0.7009 MB / 439.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.3019, allocations: 144.2 kB / 439.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.383e-05/0.302, allocations: 8 kB / 439.9 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002851/0.3023, allocations: 23.98 kB / 440 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.788e-05/0.3024, allocations: 31.95 kB / 440 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.3024, allocations: 12 kB / 440 MB, free: 1.035 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004559/0.3028, allocations: 423 kB / 440.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3029, allocations: 4 kB / 440.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005899/0.3034, allocations: 144 kB / 440.6 MB, free: 496 kB / 350.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.001201/0.3047, allocations: 1.25 MB / 441.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007367/0.3054, allocations: 430.6 kB / 442.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3054, allocations: 4.062 kB / 442.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002714/0.3057, allocations: 158.5 kB / 442.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005214/0.3062, allocations: 71.3 kB / 442.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008026/0.3143, allocations: 6.111 MB / 448.6 MB, free: 7.945 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008333/0.3151, allocations: 1.008 MB / 449.6 MB, free: 6.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002711/0.3154, allocations: 90.05 kB / 449.7 MB, free: 6.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004399/0.3159, allocations: 399.3 kB / 450.1 MB, free: 6.43 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3159, allocations: 0 / 450.1 MB, free: 6.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03532/0.3512, allocations: 11.85 MB / 461.9 MB, free: 10.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.422/8.773, allocations: 14.67 kB / 461.9 MB, free: 10.67 MB / 382.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches