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.001465/0.001465, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.001729/0.001729, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.534/1.534, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.001673/0.001673, allocations: 51.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2998, allocations: 53.37 MB / 431.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004883/0.3047, allocations: 2.937 MB / 434.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.3061, allocations: 0.7127 MB / 434.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.3063, allocations: 12 kB / 434.8 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.3065, allocations: 59.36 kB / 434.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.3067, allocations: 91.19 kB / 435 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.307, allocations: 87.83 kB / 435 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004175/0.3074, allocations: 374.4 kB / 435.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.3076, allocations: 113.8 kB / 435.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002874/0.3079, allocations: 155.5 kB / 435.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002145/0.3081, allocations: 155.3 kB / 435.8 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.004e-05/0.3082, allocations: 32 kB / 435.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.948e-05/0.3082, allocations: 32 kB / 435.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.878e-05/0.3083, allocations: 75.75 kB / 436 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.3085, allocations: 171.1 kB / 436.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004425/0.3089, allocations: 382.8 kB / 436.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3089, allocations: 0 / 436.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3089, allocations: 0 / 436.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.3089, allocations: 4 kB / 436.5 MB, free: 1.477 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009755/0.3099, allocations: 0.5365 MB / 437 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.31, allocations: 8.031 kB / 437.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.65e-05/0.31, allocations: 70.72 kB / 437.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.477e-05/0.3101, allocations: 36.7 kB / 437.2 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003756/0.3105, allocations: 210.7 kB / 437.4 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.3105, allocations: 25.03 kB / 437.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.644e-05/0.3106, allocations: 36.34 kB / 437.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005201/0.3111, allocations: 278.2 kB / 437.7 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.3111, allocations: 0 / 437.7 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/0.3111, allocations: 12 kB / 437.7 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.3112, allocations: 12 kB / 437.7 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004412/0.3116, allocations: 206.5 kB / 437.9 MB, free: 0 / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.3131, allocations: 0.9292 MB / 438.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.3134, allocations: 157.1 kB / 439 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.3136, allocations: 76.59 kB / 439.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.3136, allocations: 0 / 439.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.3137, allocations: 42.5 kB / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.122e-06/0.3137, allocations: 0 / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005493/0.3142, allocations: 213.7 kB / 439.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.3143, allocations: 55.41 kB / 439.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002218/0.3145, allocations: 214.7 kB / 439.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.3145, allocations: 29.7 kB / 439.6 MB, free: 14.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.3147, allocations: 196.4 kB / 439.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.987e-05/0.3148, allocations: 71.39 kB / 439.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.502e-05/0.3148, allocations: 45.7 kB / 439.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.315, allocations: 330.8 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.3152, allocations: 59.97 kB / 440.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.3154, allocations: 125.9 kB / 440.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003595/0.3157, allocations: 185.8 kB / 440.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.3157, allocations: 3.938 kB / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004608/0.3162, allocations: 241.2 kB / 440.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.3162, allocations: 7.984 kB / 440.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.3162, allocations: 0 / 440.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3162, allocations: 4 kB / 440.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.3165, allocations: 60.09 kB / 440.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.3165, allocations: 11.88 kB / 440.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.3167, allocations: 23.88 kB / 441 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.3167, allocations: 12 kB / 441 MB, free: 12.75 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 0.0001409/0.3168, allocations: 145.7 kB / 441.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.3169, allocations: 19.86 kB / 441.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004167/0.3173, allocations: 193.8 kB / 441.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3173, allocations: 4.047 kB / 441.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3173, allocations: 3.984 kB / 441.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3173, allocations: 0 / 441.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003666/0.3177, allocations: 292.5 kB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3177, allocations: 0 / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.3179, allocations: 51.91 kB / 441.7 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3179, allocations: 0 / 441.7 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.318, allocations: 8 kB / 441.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.318, allocations: 0 / 441.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.318, allocations: 4 kB / 441.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006111/0.3186, allocations: 351.1 kB / 442 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.949e-05/0.3186, allocations: 27.78 kB / 442 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.493e-05/0.3186, allocations: 8.188 kB / 442.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.3188, allocations: 27.92 kB / 442.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.3189, allocations: 11.92 kB / 442.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.3189, allocations: 7.984 kB / 442.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001371/0.319, allocations: 152.6 kB / 442.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.319, allocations: 0 / 442.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003223/0.3193, allocations: 71.78 kB / 442.3 MB, free: 11.33 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.0008986/0.3202, allocations: 0.8869 MB / 443.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003725/0.3206, allocations: 147.9 kB / 443.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3206, allocations: 0 / 443.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.3208, allocations: 72.11 kB / 443.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.3211, allocations: 35.25 kB / 443.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003575/0.3247, allocations: 2.716 MB / 446.2 MB, free: 7.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004378/0.3251, allocations: 0.7671 MB / 446.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.095e-05/0.3252, allocations: 17.95 kB / 447 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.3253, allocations: 95.41 kB / 447 MB, free: 6.438 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3253, allocations: 0 / 447 MB, free: 6.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.3585, allocations: 4.8 MB / 451.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.38, allocations: 3.125 kB / 451.9 MB, free: 1.793 MB / 350.1 MB " [Timeout remaining time 649] (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: 14.147665322991088]