Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001062/0.001062, allocations: 189.3 kB / 18.19 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 47.94 kB / 280.2 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09597/0.09717, allocations: 46.63 MB / 326.9 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.01023/0.1075, allocations: 5.937 MB / 332.8 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004536/0.112, allocations: 1.649 MB / 334.5 MB, free: 13.06 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001336/0.1134, allocations: 27.88 kB / 334.5 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001141/0.1146, allocations: 194.5 kB / 334.7 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001433/0.1161, allocations: 170.5 kB / 334.8 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001918/0.118, allocations: 455.6 kB / 335.3 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001942/0.12, allocations: 1.387 MB / 336.7 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001091/0.1211, allocations: 0.613 MB / 337.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007758/0.1219, allocations: 486.1 kB / 337.8 MB, free: 9.727 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006781/0.1226, allocations: 497.3 kB / 338.3 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002708/0.1229, allocations: 124 kB / 338.4 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003629/0.1233, allocations: 139.9 kB / 338.5 MB, free: 8.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002468/0.1235, allocations: 267 kB / 338.8 MB, free: 8.719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007934/0.1243, allocations: 0.61 MB / 339.4 MB, free: 8.105 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001697/0.1261, allocations: 1.569 MB / 341 MB, free: 6.531 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.1261, allocations: 0 / 341 MB, free: 6.531 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1261, allocations: 0 / 341 MB, free: 6.531 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.146e-05/0.1262, allocations: 0 / 341 MB, free: 6.531 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.002671/0.1288, allocations: 1.466 MB / 342.4 MB, free: 5.012 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.1289, allocations: 12.03 kB / 342.4 MB, free: 5 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002507/0.1291, allocations: 173.7 kB / 342.6 MB, free: 4.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002333/0.1294, allocations: 142.3 kB / 342.7 MB, free: 4.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.1304, allocations: 0.7198 MB / 343.5 MB, free: 3.914 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.519e-05/0.1305, allocations: 90.34 kB / 343.5 MB, free: 3.824 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001509/0.1307, allocations: 120 kB / 343.7 MB, free: 3.707 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002022/0.1327, allocations: 1.268 MB / 344.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.87e-05/0.1328, allocations: 7.938 kB / 344.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.682e-05/0.1329, allocations: 52 kB / 345 MB, free: 2.207 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.891e-05/0.1329, allocations: 32 kB / 345 MB, free: 2.176 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.1342, allocations: 0.6929 MB / 345.7 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006274/0.1405, allocations: 6.82 MB / 352.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006915/0.1412, allocations: 265.2 kB / 352.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000352/0.1416, allocations: 185.7 kB / 353 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002194/0.1418, allocations: 81.11 kB / 353.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.1419, allocations: 38.56 kB / 353.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.725e-06/0.1419, allocations: 0 / 353.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002724/0.1446, allocations: 1.397 MB / 354.5 MB, free: 8.211 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.1447, allocations: 81.11 kB / 354.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007889/0.1455, allocations: 0.6569 MB / 355.2 MB, free: 7.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.1455, allocations: 33.64 kB / 355.3 MB, free: 7.402 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004231/0.1459, allocations: 0.6875 MB / 355.9 MB, free: 6.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.769e-05/0.1461, allocations: 118.4 kB / 356.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001764/0.1462, allocations: 138.5 kB / 356.2 MB, free: 6.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.1464, allocations: 386.8 kB / 356.6 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002672/0.1467, allocations: 149.9 kB / 356.7 MB, free: 5.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005275/0.1472, allocations: 0.5468 MB / 357.3 MB, free: 5.168 MB / 302.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.001163/0.1484, allocations: 0.9585 MB / 358.2 MB, free: 3.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/0.1484, allocations: 4 kB / 358.2 MB, free: 3.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001338/0.1498, allocations: 0.795 MB / 359 MB, free: 3.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.1498, allocations: 8 kB / 359 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.199e-05/0.1498, allocations: 16 kB / 359 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002584/0.1501, allocations: 81.97 kB / 359.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005366/0.1506, allocations: 188.1 kB / 359.3 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002598/0.1533, allocations: 3.324 MB / 362.6 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000463/0.1537, allocations: 35.98 kB / 362.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.544e-05/0.1538, allocations: 40 kB / 362.7 MB, free: 15.2 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 system: 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004439/0.1543, allocations: 281.4 kB / 363 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.1544, allocations: 79 kB / 363.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.1546, allocations: 70.42 kB / 363.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.1546, allocations: 4 kB / 363.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.1546, allocations: 0 / 363.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1546, allocations: 3.984 kB / 363.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/0.1565, allocations: 1.255 MB / 364.4 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.1566, allocations: 4 kB / 364.4 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003161/0.1569, allocations: 60.06 kB / 364.5 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001743/0.1571, allocations: 61.67 kB / 364.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.1571, allocations: 4 kB / 364.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002151/0.1593, allocations: 3.061 MB / 367.6 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.1593, allocations: 3.938 kB / 367.6 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009149/0.1602, allocations: 0.6391 MB / 368.2 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.1604, allocations: 136.2 kB / 368.4 MB, free: 9.125 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.189e-05/0.1605, allocations: 8.062 kB / 368.4 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.1608, allocations: 15.98 kB / 368.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.913e-05/0.1609, allocations: 27.91 kB / 368.4 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.1609, allocations: 12 kB / 368.4 MB, free: 9.062 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000569/0.1615, allocations: 435 kB / 368.8 MB, free: 8.645 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.1615, allocations: 4 kB / 368.8 MB, free: 8.641 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009304/0.1624, allocations: 159.9 kB / 369 MB, free: 8.484 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001205/0.1636, allocations: 1.181 MB / 370.2 MB, free: 7.262 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.1648, allocations: 0.6582 MB / 370.8 MB, free: 6.582 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1648, allocations: 0 / 370.8 MB, free: 6.582 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004738/0.1653, allocations: 361.2 kB / 371.2 MB, free: 6.203 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005962/0.1659, allocations: 76.42 kB / 371.3 MB, free: 6.125 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1453/0.3112, allocations: 7.126 MB / 378.4 MB, free: 51.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000552/0.3118, allocations: 1.033 MB / 379.4 MB, free: 50.68 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003692/0.3122, allocations: 86.05 kB / 379.5 MB, free: 50.67 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004405/0.3126, allocations: 428.6 kB / 379.9 MB, free: 50.66 MB / 318.1 MB Notification: Performance of SimCode: time 1.143e-06/0.3126, allocations: 0 / 379.9 MB, free: 50.66 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03143/0.344, allocations: 12.19 MB / 392.1 MB, free: 46.88 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/0.3443, allocations: 224.2 kB / 392.3 MB, free: 46.62 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.181/2.526, allocations: 4 kB / 392.3 MB, free: 46.62 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches