Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001789/0.001789, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001904/0.001904, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 51.92 kB / 365.7 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1029, allocations: 52.14 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006856/0.1097, allocations: 5.398 MB / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002883/0.1126, allocations: 1.442 MB / 424.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004099/0.113, allocations: 27.88 kB / 424.7 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004838/0.1135, allocations: 217.8 kB / 424.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005156/0.114, allocations: 202 kB / 425.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007693/0.1148, allocations: 395.3 kB / 425.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.116, allocations: 1.115 MB / 426.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005342/0.1165, allocations: 336.3 kB / 426.9 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004776/0.117, allocations: 402.3 kB / 427.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004696/0.1174, allocations: 433.5 kB / 427.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001268/0.1176, allocations: 84 kB / 427.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.1177, allocations: 95.98 kB / 427.9 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.1179, allocations: 211.1 kB / 428.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004352/0.1184, allocations: 0.4971 MB / 428.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.1196, allocations: 1.182 MB / 429.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1196, allocations: 0 / 429.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1196, allocations: 4 kB / 429.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.1196, allocations: 0 / 429.8 MB, free: 0.5078 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.001935/0.1216, allocations: 1.339 MB / 431.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1216, allocations: 16.03 kB / 431.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001599/0.1218, allocations: 152.2 kB / 431.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/0.122, allocations: 131.2 kB / 431.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.123, allocations: 0.6542 MB / 432.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.516e-05/0.1231, allocations: 77.94 kB / 432.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.1232, allocations: 100 kB / 432.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.1249, allocations: 1.027 MB / 433.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.48e-05/0.1249, allocations: 15.94 kB / 433.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.104e-05/0.125, allocations: 40 kB / 433.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.125, allocations: 24 kB / 433.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.1261, allocations: 0.5617 MB / 433.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005223/0.1313, allocations: 5.502 MB / 439.4 MB, free: 6.363 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005647/0.1319, allocations: 236.8 kB / 439.7 MB, free: 6.113 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003068/0.1322, allocations: 151.9 kB / 439.8 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001331/0.1323, allocations: 81.11 kB / 439.9 MB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/0.1324, allocations: 42.5 kB / 439.9 MB, free: 5.812 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.463e-06/0.1324, allocations: 0 / 439.9 MB, free: 5.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.003736/0.1361, allocations: 1.734 MB / 441.7 MB, free: 3.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.1362, allocations: 85.05 kB / 441.7 MB, free: 3.879 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007196/0.1369, allocations: 0.6334 MB / 442.4 MB, free: 3.234 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.1369, allocations: 33.7 kB / 442.4 MB, free: 3.195 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004403/0.1374, allocations: 0.6122 MB / 443 MB, free: 2.574 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.1375, allocations: 154.7 kB / 443.2 MB, free: 2.422 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.1377, allocations: 134.6 kB / 443.3 MB, free: 2.285 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.1379, allocations: 394.8 kB / 443.7 MB, free: 1.891 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002972/0.1382, allocations: 141.9 kB / 443.8 MB, free: 1.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000589/0.1387, allocations: 0.4971 MB / 444.3 MB, free: 1.094 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009379/0.1397, allocations: 0.6939 MB / 445 MB, free: 244 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1397, allocations: 8 kB / 445 MB, free: 236 kB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.175/0.3146, allocations: 0.7064 MB / 445.7 MB, free: 29.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.3147, allocations: 12.38 kB / 445.7 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.3147, allocations: 15.91 kB / 445.8 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.168e-05/0.3147, allocations: 15.28 kB / 445.8 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000562/0.3153, allocations: 200.7 kB / 446 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.127e-05/0.3153, allocations: 24.98 kB / 446 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.3157, allocations: 33.88 kB / 446 MB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.039e-05/0.3157, allocations: 41.83 kB / 446.1 MB, free: 29.44 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.0002619/0.316, allocations: 223.9 kB / 446.3 MB, free: 29.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.502e-05/0.3161, allocations: 79.81 kB / 446.4 MB, free: 29.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.881e-05/0.3162, allocations: 82.08 kB / 446.4 MB, free: 29.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3162, allocations: 4.844 kB / 446.4 MB, free: 29.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3162, allocations: 0.5 kB / 446.4 MB, free: 29.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3162, allocations: 4 kB / 446.5 MB, free: 29.31 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001647/0.3178, allocations: 1.317 MB / 447.8 MB, free: 28.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3178, allocations: 0 / 447.8 MB, free: 28.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004114/0.3182, allocations: 104.6 kB / 447.9 MB, free: 28.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3182, allocations: 3.719 kB / 447.9 MB, free: 28.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.3183, allocations: 11.81 kB / 447.9 MB, free: 28.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.3183, allocations: 12.55 kB / 447.9 MB, free: 28.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3183, allocations: 1.312 kB / 447.9 MB, free: 28.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007974/0.3191, allocations: 0.6999 MB / 448.6 MB, free: 28.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.3192, allocations: 143.3 kB / 448.7 MB, free: 28.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.563e-05/0.3192, allocations: 8.656 kB / 448.7 MB, free: 28.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002728/0.3195, allocations: 31.81 kB / 448.8 MB, free: 28.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.337e-05/0.3196, allocations: 31.27 kB / 448.8 MB, free: 28.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.3196, allocations: 11.28 kB / 448.8 MB, free: 28.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000356/0.3199, allocations: 421.5 kB / 449.2 MB, free: 28.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3199, allocations: 1.438 kB / 449.2 MB, free: 28.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005778/0.3205, allocations: 139.6 kB / 449.4 MB, free: 28.45 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.0009563/0.3215, allocations: 1.263 MB / 450.6 MB, free: 27.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006736/0.3221, allocations: 427.5 kB / 451.1 MB, free: 27.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3222, allocations: 3.531 kB / 451.1 MB, free: 27.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.3224, allocations: 146.8 kB / 451.2 MB, free: 27.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004931/0.3229, allocations: 75.45 kB / 451.3 MB, free: 27.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00707/0.33, allocations: 6.119 MB / 457.4 MB, free: 24.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004736/0.3304, allocations: 1.008 MB / 458.4 MB, free: 23.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002943/0.3307, allocations: 91.56 kB / 458.5 MB, free: 23.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003578/0.3311, allocations: 391.3 kB / 458.9 MB, free: 23.16 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3311, allocations: 4 kB / 458.9 MB, free: 23.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03983/0.3709, allocations: 11.73 MB / 470.6 MB, free: 19.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.734/9.104, allocations: 16.78 kB / 470.6 MB, free: 19.86 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.203262496273965]