Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.001345/0.001345, allocations: 123.4 kB / 17.79 MB, free: 5.285 MB / 14.72 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.001372/0.001372, allocations: 208.2 kB / 20.75 MB, free: 2.336 MB / 14.72 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 1.408/1.408, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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.SeriesResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 51.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1022, allocations: 53.34 MB / 426.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004265/0.1065, allocations: 2.915 MB / 429.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.1077, allocations: 0.7089 MB / 430 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.1079, allocations: 7.938 kB / 430 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.1081, allocations: 63.38 kB / 430 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001687/0.1083, allocations: 83.23 kB / 430.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.1085, allocations: 91.83 kB / 430.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004414/0.109, allocations: 382.3 kB / 430.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.1092, allocations: 113.4 kB / 430.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002913/0.1095, allocations: 151.5 kB / 430.8 MB, free: 240 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.1097, allocations: 159.2 kB / 431 MB, free: 80 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.753e-05/0.1097, allocations: 32 kB / 431 MB, free: 48 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.132e-05/0.1098, allocations: 32 kB / 431.1 MB, free: 16 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.199/0.3088, allocations: 67.72 kB / 431.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002287/0.3091, allocations: 166.8 kB / 431.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005083/0.3096, allocations: 389.3 kB / 431.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3096, allocations: 0 / 431.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3096, allocations: 2.188 kB / 431.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.496e-05/0.3096, allocations: 0 / 431.7 MB, free: 7.957 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008489/0.3105, allocations: 0.61 MB / 432.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.3105, allocations: 9.719 kB / 432.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.06e-05/0.3106, allocations: 67.94 kB / 432.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.776e-05/0.3106, allocations: 38.95 kB / 432.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.3109, allocations: 266.9 kB / 432.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.311, allocations: 25.47 kB / 432.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.544e-05/0.311, allocations: 31.09 kB / 432.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004949/0.3115, allocations: 276.5 kB / 433 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3115, allocations: 3.031 kB / 433 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.697e-05/0.3116, allocations: 13.41 kB / 433 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.3116, allocations: 7.312 kB / 433 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004252/0.312, allocations: 207 kB / 433.2 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.3132, allocations: 0.981 MB / 434.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.3135, allocations: 151.2 kB / 434.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.3136, allocations: 77.33 kB / 434.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.3136, allocations: 2.406 kB / 434.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.3137, allocations: 34.97 kB / 434.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.322e-06/0.3137, allocations: 0 / 434.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005257/0.3142, allocations: 221.2 kB / 434.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.108e-05/0.3142, allocations: 52.81 kB / 434.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.3144, allocations: 212.9 kB / 434.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.3144, allocations: 30.8 kB / 434.9 MB, free: 6.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.345e-05/0.3145, allocations: 191.5 kB / 435.1 MB, free: 6.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.717e-05/0.3145, allocations: 75.72 kB / 435.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-05/0.3146, allocations: 44.91 kB / 435.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.437e-05/0.3146, allocations: 328.3 kB / 435.6 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.3148, allocations: 67.62 kB / 435.6 MB, free: 5.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.3149, allocations: 119.7 kB / 435.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.3153, allocations: 188.1 kB / 435.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.3153, allocations: 1.656 kB / 435.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004299/0.3157, allocations: 246 kB / 436.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.3157, allocations: 5.312 kB / 436.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.3157, allocations: 2.906 kB / 436.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.3157, allocations: 6.438 kB / 436.2 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/0.316, allocations: 63.61 kB / 436.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.316, allocations: 3.781 kB / 436.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001417/0.3162, allocations: 26.84 kB / 436.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.3162, allocations: 11.03 kB / 436.3 MB, free: 5.691 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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 9.056e-05/0.3163, allocations: 139.4 kB / 436.4 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.342e-05/0.3163, allocations: 21.39 kB / 436.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003918/0.3167, allocations: 195.5 kB / 436.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.3167, allocations: 3.938 kB / 436.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3167, allocations: 2.438 kB / 436.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3167, allocations: 1.875 kB / 436.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002962/0.317, allocations: 322.8 kB / 437 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.317, allocations: 3.938 kB / 437 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/0.3173, allocations: 54.83 kB / 437 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3173, allocations: 0 / 437 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.3173, allocations: 9.609 kB / 437 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3173, allocations: 1.062 kB / 437 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3173, allocations: 0.75 kB / 437 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005183/0.3178, allocations: 351.2 kB / 437.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.896e-05/0.3179, allocations: 103.3 kB / 437.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.3179, allocations: 1.125 kB / 437.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.318, allocations: 20.39 kB / 437.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.997e-05/0.3181, allocations: 15.91 kB / 437.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.3181, allocations: 4.25 kB / 437.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001052/0.3182, allocations: 146.5 kB / 437.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3182, allocations: 0 / 437.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.3185, allocations: 74.78 kB / 437.7 MB, free: 4.957 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0006957/0.3192, allocations: 0.8896 MB / 438.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003905/0.3196, allocations: 148.1 kB / 438.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3196, allocations: 4 kB / 438.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.3198, allocations: 82.62 kB / 438.9 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.3201, allocations: 28.34 kB / 438.9 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002999/0.3231, allocations: 2.704 MB / 441.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002025/0.3233, allocations: 0.7689 MB / 442.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.3234, allocations: 22.89 kB / 442.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.3236, allocations: 95.83 kB / 442.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3236, allocations: 0 / 442.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03969/0.3632, allocations: 4.556 MB / 447 MB, free: 1.035 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.917/8.28, allocations: 13.42 kB / 447 MB, free: 1.023 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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: 10.830307518132031]