Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001491/0.001491, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001316, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.419/1.419, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 71.52 kB / 307.9 MB, free: 488 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09881/0.1008, allocations: 50.55 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004466/0.1053, allocations: 2.895 MB / 361.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.1067, allocations: 0.7166 MB / 362.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.1069, allocations: 11.94 kB / 362.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001972/0.1071, allocations: 59.44 kB / 362.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001744/0.1073, allocations: 91.19 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002759/0.1076, allocations: 87.81 kB / 362.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004563/0.1081, allocations: 374.5 kB / 362.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002944/0.1084, allocations: 153.3 kB / 362.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002838/0.1087, allocations: 147.5 kB / 363 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.1089, allocations: 151.3 kB / 363.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.802e-05/0.1089, allocations: 32 kB / 363.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.126e-05/0.109, allocations: 36 kB / 363.2 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.37e-05/0.1091, allocations: 83.67 kB / 363.3 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.1093, allocations: 167.2 kB / 363.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003886/0.1097, allocations: 374.9 kB / 363.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1097, allocations: 0 / 363.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1097, allocations: 0 / 363.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.1097, allocations: 0 / 363.8 MB, free: 8.543 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.001019/0.1107, allocations: 0.6121 MB / 364.4 MB, free: 7.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.1108, allocations: 8.031 kB / 364.4 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.499e-05/0.1108, allocations: 44.45 kB / 364.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.1112, allocations: 251.8 kB / 364.7 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.1112, allocations: 25.03 kB / 364.7 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.39e-05/0.1113, allocations: 32.38 kB / 364.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005928/0.1119, allocations: 274.4 kB / 365 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.1119, allocations: 4 kB / 365 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.451e-05/0.112, allocations: 16 kB / 365 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.112, allocations: 8 kB / 365 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005581/0.1126, allocations: 202.5 kB / 365.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.1141, allocations: 0.9828 MB / 366.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003844/0.1145, allocations: 162.5 kB / 366.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.1148, allocations: 81 kB / 366.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.1148, allocations: 0 / 366.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.1148, allocations: 38.5 kB / 366.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.052e-06/0.1149, allocations: 4 kB / 366.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005947/0.1155, allocations: 209.6 kB / 366.7 MB, free: 5.422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.1155, allocations: 59.34 kB / 366.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.1157, allocations: 210.8 kB / 367 MB, free: 5.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.1158, allocations: 29.7 kB / 367 MB, free: 5.102 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.1159, allocations: 184 kB / 367.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.177e-05/0.116, allocations: 67.09 kB / 367.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.75e-05/0.1161, allocations: 53.61 kB / 367.3 MB, free: 4.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1163, allocations: 330.8 kB / 367.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.1165, allocations: 59.97 kB / 367.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.1167, allocations: 125.8 kB / 367.8 MB, free: 4.258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004646/0.1172, allocations: 189.9 kB / 368 MB, free: 4.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1172, allocations: 0 / 368 MB, free: 4.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005098/0.1177, allocations: 249.1 kB / 368.2 MB, free: 3.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.1177, allocations: 6.656 kB / 368.2 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1177, allocations: 0 / 368.2 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.1178, allocations: 7.984 kB / 368.2 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.1181, allocations: 59.91 kB / 368.3 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.1181, allocations: 4 kB / 368.3 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.1182, allocations: 35.8 kB / 368.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.1183, allocations: 12 kB / 368.4 MB, free: 3.68 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.0001515/0.1184, allocations: 141.7 kB / 368.5 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.1185, allocations: 15.81 kB / 368.5 MB, free: 3.516 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004574/0.1189, allocations: 189.8 kB / 368.7 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.119, allocations: 4 kB / 368.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.119, allocations: 0 / 368.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.119, allocations: 4 kB / 368.7 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004048/0.1194, allocations: 325.3 kB / 369 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1194, allocations: 0 / 369 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.1197, allocations: 55.91 kB / 369.1 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.1197, allocations: 0 / 369.1 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.1197, allocations: 4 kB / 369.1 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.1197, allocations: 7.984 kB / 369.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1197, allocations: 3.938 kB / 369.1 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006335/0.1204, allocations: 351.1 kB / 369.4 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.664e-05/0.1205, allocations: 92.91 kB / 369.5 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/0.1205, allocations: 8.062 kB / 369.5 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.1207, allocations: 15.92 kB / 369.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.763e-05/0.1207, allocations: 11.98 kB / 369.6 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.1207, allocations: 8 kB / 369.6 MB, free: 2.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.1209, allocations: 152.6 kB / 369.7 MB, free: 2.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1209, allocations: 0 / 369.7 MB, free: 2.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003282/0.1212, allocations: 71.69 kB / 369.8 MB, free: 2.148 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.0001318/0.1214, allocations: 107.2 kB / 369.9 MB, free: 2.035 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004568/0.1218, allocations: 170.6 kB / 370.1 MB, free: 1.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1219, allocations: 4 kB / 370.1 MB, free: 1.867 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.122, allocations: 75.89 kB / 370.1 MB, free: 1.793 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.1224, allocations: 31.89 kB / 370.2 MB, free: 1.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.124, allocations: 0.8517 MB / 371 MB, free: 0.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/0.1245, allocations: 0.7673 MB / 371.8 MB, free: 80 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.827e-05/0.1245, allocations: 19.44 kB / 371.8 MB, free: 60 kB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1246, allocations: 0 / 371.8 MB, free: 60 kB / 302.1 MB Notification: Performance of Templates: time 0.1547/0.2793, allocations: 2.868 MB / 374.7 MB, free: 19.25 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches