Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008514/0.0008514, allocations: 87.69 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008274/0.0008274, allocations: 165.3 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8777/0.8777, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.644e-06/1.644e-06, allocations: 0 / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.96e-05/2.124e-05, allocations: 2.281 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.003976/0.003997, allocations: 4.776 MB / 329.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001843/0.00584, allocations: 1.481 MB / 330.9 MB, free: 9.625 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002973/0.006138, allocations: 43.69 kB / 330.9 MB, free: 9.582 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.006456, allocations: 213.8 kB / 331.1 MB, free: 9.371 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003527/0.006809, allocations: 209.8 kB / 331.3 MB, free: 9.164 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005408/0.00735, allocations: 423.2 kB / 331.7 MB, free: 8.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007231/0.008073, allocations: 1.153 MB / 332.9 MB, free: 7.594 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003658/0.008439, allocations: 316.8 kB / 333.2 MB, free: 7.262 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00051/0.008949, allocations: 0.5962 MB / 333.8 MB, free: 6.664 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.00918, allocations: 290.9 kB / 334.1 MB, free: 6.379 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.494e-05/0.009255, allocations: 84 kB / 334.2 MB, free: 6.297 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.009374, allocations: 99.98 kB / 334.3 MB, free: 6.199 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.422e-05/0.009468, allocations: 215 kB / 334.5 MB, free: 5.988 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.009648, allocations: 327 kB / 334.8 MB, free: 5.668 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007001/0.01035, allocations: 1.16 MB / 335.9 MB, free: 4.504 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.01035, allocations: 0 / 335.9 MB, free: 4.504 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.01035, allocations: 0 / 335.9 MB, free: 4.504 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.01036, allocations: 0 / 335.9 MB, free: 4.504 MB / 298.7 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.001119/0.01148, allocations: 1.274 MB / 337.2 MB, free: 3.195 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.01152, allocations: 8.031 kB / 337.2 MB, free: 3.188 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000105/0.01162, allocations: 152.2 kB / 337.4 MB, free: 3.031 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.01182, allocations: 155.1 kB / 337.5 MB, free: 2.879 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006405/0.01246, allocations: 0.5704 MB / 338.1 MB, free: 2.281 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.701e-05/0.0125, allocations: 74 kB / 338.2 MB, free: 2.211 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.58e-05/0.01257, allocations: 99.98 kB / 338.3 MB, free: 2.113 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009695/0.01354, allocations: 1.089 MB / 339.4 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.01356, allocations: 11.89 kB / 339.4 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/0.01361, allocations: 47.94 kB / 339.4 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.01362, allocations: 24 kB / 339.4 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006956/0.01432, allocations: 0.5539 MB / 340 MB, free: 256 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/0.01712, allocations: 5.224 MB / 345.2 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003244/0.01744, allocations: 228.9 kB / 345.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.01763, allocations: 149.7 kB / 345.6 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.541e-05/0.0177, allocations: 11.98 kB / 345.6 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.01773, allocations: 46.44 kB / 345.6 MB, free: 10.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=28): time 1.362e-06/0.01773, allocations: 0 / 345.6 MB, free: 10.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.002062/0.01979, allocations: 1.586 MB / 347.2 MB, free: 8.641 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.01983, allocations: 81.11 kB / 347.3 MB, free: 8.543 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004521/0.02028, allocations: 0.6645 MB / 348 MB, free: 7.867 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.0203, allocations: 33.7 kB / 348 MB, free: 7.828 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002441/0.02054, allocations: 0.6201 MB / 348.6 MB, free: 7.199 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.397e-05/0.02062, allocations: 154.8 kB / 348.8 MB, free: 7.047 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.02072, allocations: 130.6 kB / 348.9 MB, free: 6.914 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.02082, allocations: 390.7 kB / 349.3 MB, free: 6.523 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.02101, allocations: 149.9 kB / 349.4 MB, free: 6.379 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003081/0.02131, allocations: 0.4895 MB / 349.9 MB, free: 5.723 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005292/0.02184, allocations: 0.7004 MB / 350.6 MB, free: 4.859 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.02185, allocations: 4 kB / 350.6 MB, free: 4.855 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006663/0.02251, allocations: 0.7155 MB / 351.3 MB, free: 4.133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.02253, allocations: 14.5 kB / 351.4 MB, free: 4.121 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.02254, allocations: 12 kB / 351.4 MB, free: 4.109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.02256, allocations: 16 kB / 351.4 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003241/0.02288, allocations: 196.3 kB / 351.6 MB, free: 3.902 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.509e-05/0.0229, allocations: 31.8 kB / 351.6 MB, free: 3.871 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.02307, allocations: 39.92 kB / 351.6 MB, free: 3.832 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.02311, allocations: 40 kB / 351.7 MB, free: 3.793 MB / 314.7 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.000186/0.02329, allocations: 221.5 kB / 351.9 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.626e-05/0.02336, allocations: 83.48 kB / 352 MB, free: 3.484 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.907e-05/0.02343, allocations: 74.67 kB / 352.1 MB, free: 3.41 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.02343, allocations: 4 kB / 352.1 MB, free: 3.406 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.02344, allocations: 4 kB / 352.1 MB, free: 3.402 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.02344, allocations: 0 / 352.1 MB, free: 3.402 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.0246, allocations: 1.252 MB / 353.3 MB, free: 2.086 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.02461, allocations: 4.094 kB / 353.3 MB, free: 2.082 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002215/0.02483, allocations: 103.9 kB / 353.4 MB, free: 1.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.02483, allocations: 4 kB / 353.4 MB, free: 1.977 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.02485, allocations: 12 kB / 353.4 MB, free: 1.965 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.02485, allocations: 7.984 kB / 353.4 MB, free: 1.957 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.02486, allocations: 11.94 kB / 353.5 MB, free: 1.945 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005984/0.02545, allocations: 0.7013 MB / 354.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.26e-05/0.02551, allocations: 63.48 kB / 354.2 MB, free: 1.148 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.02554, allocations: 15.98 kB / 354.2 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.02569, allocations: 23.97 kB / 354.3 MB, free: 1.109 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.097e-05/0.02574, allocations: 31.89 kB / 354.3 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.02575, allocations: 15.98 kB / 354.3 MB, free: 1.062 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002979/0.02605, allocations: 419 kB / 354.7 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02605, allocations: 4 kB / 354.7 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003765/0.02643, allocations: 144 kB / 354.9 MB, free: 0.5117 MB / 314.7 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.0007565/0.02718, allocations: 1.246 MB / 356.1 MB, free: 15.22 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004374/0.02762, allocations: 418.9 kB / 356.5 MB, free: 14.81 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.02762, allocations: 0 / 356.5 MB, free: 14.81 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001577/0.02778, allocations: 143.8 kB / 356.7 MB, free: 14.67 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.02813, allocations: 71.3 kB / 356.7 MB, free: 14.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004715/0.03285, allocations: 6.041 MB / 362.8 MB, free: 8.074 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.0331, allocations: 413.4 kB / 363.2 MB, free: 7.641 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001589/0.03326, allocations: 98.05 kB / 363.3 MB, free: 7.543 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002867/0.03354, allocations: 392.4 kB / 363.6 MB, free: 7.16 MB / 330.7 MB Notification: Performance of SimCode: time 5.31e-07/0.03354, allocations: 0 / 363.6 MB, free: 7.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.0577, allocations: 12.57 MB / 376.2 MB, free: 10.81 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.973/7.03, allocations: 15.86 kB / 376.2 MB, free: 10.8 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.984800210222602]