Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 96.48 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 183.2 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.2 MB / 241.1 MB, free: 5.355 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002396/0.0002396, allocations: 10.59 kB / 300.7 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1054, allocations: 50.43 MB / 351.1 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005725/0.1111, allocations: 4.928 MB / 356.1 MB, free: 6.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003022/0.1142, allocations: 1.629 MB / 357.7 MB, free: 5.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000508/0.1147, allocations: 27.88 kB / 357.7 MB, free: 5.035 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002183/0.115, allocations: 122.9 kB / 357.8 MB, free: 4.914 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005402/0.1155, allocations: 263.1 kB / 358.1 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008009/0.1163, allocations: 331.6 kB / 358.4 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.1174, allocations: 0.8894 MB / 359.3 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006995/0.1182, allocations: 461.9 kB / 359.8 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000473/0.1186, allocations: 350.4 kB / 360.1 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004286/0.1191, allocations: 393.7 kB / 360.5 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.152e-05/0.1192, allocations: 48 kB / 360.5 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.1193, allocations: 60 kB / 360.6 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.1195, allocations: 175.2 kB / 360.8 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.1197, allocations: 245 kB / 361 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009977/0.1207, allocations: 1.165 MB / 362.2 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.1207, allocations: 0 / 362.2 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1207, allocations: 0 / 362.2 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.176e-05/0.1207, allocations: 0 / 362.2 MB, free: 0.5469 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.001951/0.1227, allocations: 1.236 MB / 363.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1228, allocations: 8.031 kB / 363.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.1229, allocations: 150.2 kB / 363.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009396/0.1239, allocations: 0.6891 MB / 364.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.124, allocations: 90.41 kB / 364.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.1241, allocations: 124 kB / 364.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001838/0.1259, allocations: 1.248 MB / 365.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.208e-05/0.126, allocations: 7.938 kB / 365.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-05/0.1261, allocations: 48 kB / 365.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.116e-05/0.1261, allocations: 32 kB / 365.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.1274, allocations: 0.6929 MB / 366.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006214/0.1336, allocations: 6.832 MB / 373.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006735/0.1343, allocations: 277.3 kB / 373.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001816/0.1345, allocations: 81.11 kB / 373.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.1345, allocations: 42.56 kB / 373.7 MB, free: 4.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.224e-06/0.1345, allocations: 0 / 373.7 MB, free: 4.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002475/0.137, allocations: 1.418 MB / 375.1 MB, free: 2.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.1371, allocations: 85.05 kB / 375.2 MB, free: 2.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007314/0.1378, allocations: 0.653 MB / 375.9 MB, free: 2.062 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.1379, allocations: 29.7 kB / 375.9 MB, free: 2.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004475/0.1383, allocations: 0.6836 MB / 376.6 MB, free: 1.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.444e-05/0.1384, allocations: 114.5 kB / 376.7 MB, free: 1.219 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.356e-05/0.1384, allocations: 16 kB / 376.7 MB, free: 1.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.1386, allocations: 386.8 kB / 377.1 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.1389, allocations: 149.9 kB / 377.2 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005133/0.1394, allocations: 0.5468 MB / 377.8 MB, free: 15.93 MB / 318.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.0006093/0.14, allocations: 446 kB / 378.2 MB, free: 15.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.1401, allocations: 4 kB / 378.2 MB, free: 15.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001277/0.1413, allocations: 0.7918 MB / 379 MB, free: 14.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.1414, allocations: 19.94 kB / 379 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.1414, allocations: 12 kB / 379 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002488/0.1417, allocations: 85.62 kB / 379.1 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005287/0.1422, allocations: 179.7 kB / 379.3 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002358/0.1446, allocations: 3.002 MB / 382.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.145, allocations: 32 kB / 382.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.017e-05/0.145, allocations: 43.98 kB / 382.4 MB, free: 11.01 MB / 318.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004141/0.1455, allocations: 277.4 kB / 382.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.1456, allocations: 71.06 kB / 382.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.1457, allocations: 78.34 kB / 382.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.1457, allocations: 4 kB / 382.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1457, allocations: 0 / 382.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1457, allocations: 3.984 kB / 382.8 MB, free: 10.57 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.1476, allocations: 1.354 MB / 384.2 MB, free: 9.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1476, allocations: 8.016 kB / 384.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003044/0.1479, allocations: 67.95 kB / 384.2 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000156/0.1481, allocations: 49.69 kB / 384.3 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.1481, allocations: 11.98 kB / 384.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001992/0.1501, allocations: 2.792 MB / 387.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1501, allocations: 3.938 kB / 387.1 MB, free: 5.922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008717/0.151, allocations: 0.6821 MB / 387.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.1511, allocations: 144.2 kB / 387.9 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.279e-05/0.1512, allocations: 4 kB / 387.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.1514, allocations: 19.98 kB / 387.9 MB, free: 5.004 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.728e-05/0.1515, allocations: 27.92 kB / 388 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.1515, allocations: 8 kB / 388 MB, free: 4.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005374/0.1521, allocations: 435 kB / 388.4 MB, free: 4.547 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1521, allocations: 0 / 388.4 MB, free: 4.547 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009751/0.1531, allocations: 156 kB / 388.5 MB, free: 4.395 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001784/0.1533, allocations: 105.7 kB / 388.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.1544, allocations: 0.6559 MB / 389.3 MB, free: 3.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1544, allocations: 0 / 389.3 MB, free: 3.605 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004938/0.1549, allocations: 374.2 kB / 389.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.1554, allocations: 71.23 kB / 389.7 MB, free: 3.145 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.1583, allocations: 2.317 MB / 392.1 MB, free: 0.793 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006075/0.1589, allocations: 1.058 MB / 393.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002695/0.1592, allocations: 86.02 kB / 393.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.1593, allocations: 55.42 kB / 393.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1593, allocations: 0 / 393.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of Templates: time 0.01073/0.1701, allocations: 5.002 MB / 398.3 MB, free: 10.59 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches