Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001074, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 64.17 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1025, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004828/0.1073, allocations: 2.905 MB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.1089, allocations: 0.7127 MB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002899/0.1092, allocations: 4 kB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002904/0.1095, allocations: 67.36 kB / 361.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003684/0.1099, allocations: 83.19 kB / 361.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004168/0.1103, allocations: 91.89 kB / 361.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005929/0.1109, allocations: 374.4 kB / 361.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003504/0.1113, allocations: 157.3 kB / 362 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004082/0.1117, allocations: 147.5 kB / 362.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000284/0.112, allocations: 159.3 kB / 362.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.506e-05/0.1121, allocations: 32 kB / 362.3 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.599e-05/0.1122, allocations: 32 kB / 362.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.638e-05/0.1122, allocations: 67.77 kB / 362.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.1124, allocations: 175.1 kB / 362.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004426/0.1129, allocations: 370.9 kB / 362.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1129, allocations: 0 / 362.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1129, allocations: 0 / 362.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.1129, allocations: 4 kB / 362.9 MB, free: 8.598 MB / 302.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.00111/0.114, allocations: 0.6043 MB / 363.5 MB, free: 7.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.1141, allocations: 8.031 kB / 363.5 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.05e-05/0.1142, allocations: 74.66 kB / 363.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.052e-05/0.1143, allocations: 40.47 kB / 363.6 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003494/0.1146, allocations: 267.8 kB / 363.9 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.1147, allocations: 21.03 kB / 363.9 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.1147, allocations: 32.38 kB / 364 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005924/0.1153, allocations: 278.1 kB / 364.2 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.1153, allocations: 0 / 364.2 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/0.1154, allocations: 12 kB / 364.2 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1154, allocations: 8 kB / 364.3 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004706/0.1159, allocations: 206.5 kB / 364.5 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.1176, allocations: 0.9868 MB / 365.4 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.1179, allocations: 162.6 kB / 365.6 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.1181, allocations: 76.83 kB / 365.7 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.1181, allocations: 7.984 kB / 365.7 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.1182, allocations: 34.56 kB / 365.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.1182, allocations: 0 / 365.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005436/0.1187, allocations: 216.8 kB / 365.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.1188, allocations: 55.41 kB / 366 MB, free: 5.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.119, allocations: 210.8 kB / 366.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.119, allocations: 29.7 kB / 366.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.1191, allocations: 196 kB / 366.4 MB, free: 4.879 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.551e-05/0.1192, allocations: 63.02 kB / 366.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-05/0.1193, allocations: 45.7 kB / 366.5 MB, free: 4.766 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1194, allocations: 334.8 kB / 366.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.1196, allocations: 63.97 kB / 366.9 MB, free: 4.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.1198, allocations: 118 kB / 367 MB, free: 4.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003419/0.1201, allocations: 181.8 kB / 367.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1201, allocations: 3.938 kB / 367.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004514/0.1206, allocations: 241.2 kB / 367.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.1206, allocations: 8.125 kB / 367.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.1206, allocations: 4 kB / 367.4 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1206, allocations: 4 kB / 367.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.1209, allocations: 63.91 kB / 367.5 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.1209, allocations: 3.984 kB / 367.5 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.1211, allocations: 31.67 kB / 367.5 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.1211, allocations: 8 kB / 367.6 MB, free: 3.664 MB / 302.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.0001194/0.1212, allocations: 146.8 kB / 367.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.476e-05/0.1213, allocations: 23.81 kB / 367.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003988/0.1217, allocations: 193.8 kB / 367.9 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1217, allocations: 0 / 367.9 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1217, allocations: 7.938 kB / 367.9 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1217, allocations: 0 / 367.9 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000334/0.1221, allocations: 321.3 kB / 368.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1221, allocations: 0 / 368.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/0.1223, allocations: 55.91 kB / 368.3 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.1224, allocations: 7.938 kB / 368.3 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.1224, allocations: 8 kB / 368.3 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1224, allocations: 0 / 368.3 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1224, allocations: 4 kB / 368.3 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006051/0.123, allocations: 347 kB / 368.6 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.476e-05/0.1231, allocations: 104.8 kB / 368.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.1231, allocations: 8.062 kB / 368.8 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.1233, allocations: 15.98 kB / 368.8 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.1234, allocations: 11.98 kB / 368.8 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.1234, allocations: 8 kB / 368.8 MB, free: 2.328 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001297/0.1235, allocations: 144.6 kB / 368.9 MB, free: 2.188 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1235, allocations: 0 / 368.9 MB, free: 2.188 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003327/0.1239, allocations: 75.75 kB / 369 MB, free: 2.113 MB / 302.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.0008783/0.1248, allocations: 0.8826 MB / 369.9 MB, free: 1.207 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004183/0.1252, allocations: 167.9 kB / 370.1 MB, free: 1.043 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1252, allocations: 0 / 370.1 MB, free: 1.043 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.1254, allocations: 79.89 kB / 370.1 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003879/0.1258, allocations: 27.94 kB / 370.2 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.154/0.2798, allocations: 2.682 MB / 372.8 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.28, allocations: 0.7734 MB / 373.6 MB, free: 18.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000115/0.2801, allocations: 22.38 kB / 373.6 MB, free: 18.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.2803, allocations: 96.64 kB / 373.7 MB, free: 18.13 MB / 302.1 MB Notification: Performance of SimCode: time 1.183e-06/0.2803, allocations: 4.625 kB / 373.7 MB, free: 18.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05033/0.3306, allocations: 4.412 MB / 378.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.45, allocations: 10.27 kB / 378.2 MB, free: 17.7 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches