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.0006831/0.0006831, allocations: 93.8 kB / 17.3 MB, free: 6.391 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.0008096/0.0008098, allocations: 173.5 kB / 18.2 MB, free: 5.551 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.339/1.339, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004671/0.0004672, allocations: 8 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1042, allocations: 47.57 MB / 329 MB, free: 3.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005752/0.11, allocations: 5.467 MB / 334.5 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002591/0.1126, allocations: 1.637 MB / 336.2 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003925/0.113, allocations: 27.88 kB / 336.2 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000432/0.1135, allocations: 182.5 kB / 336.4 MB, free: 12.33 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004081/0.1139, allocations: 174.4 kB / 336.5 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000781/0.1147, allocations: 447.5 kB / 337 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.1159, allocations: 1.305 MB / 338.3 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007987/0.1167, allocations: 0.5335 MB / 338.8 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003669/0.1171, allocations: 370.1 kB / 339.2 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000399/0.1175, allocations: 417.3 kB / 339.6 MB, free: 9.078 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-05/0.1176, allocations: 51.94 kB / 339.6 MB, free: 9.027 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001554/0.1178, allocations: 60 kB / 339.7 MB, free: 8.969 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.1179, allocations: 175.1 kB / 339.9 MB, free: 8.797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004454/0.1184, allocations: 0.5453 MB / 340.4 MB, free: 8.242 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001266/0.1196, allocations: 1.416 MB / 341.8 MB, free: 6.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.1197, allocations: 4 kB / 341.8 MB, free: 6.816 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1197, allocations: 0 / 341.8 MB, free: 6.816 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.1197, allocations: 0 / 341.8 MB, free: 6.816 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.001968/0.1217, allocations: 1.24 MB / 343.1 MB, free: 5.523 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.848e-05/0.1217, allocations: 8.031 kB / 343.1 MB, free: 5.516 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002514/0.122, allocations: 181.7 kB / 343.2 MB, free: 5.328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002366/0.1222, allocations: 138.3 kB / 343.4 MB, free: 5.191 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.1234, allocations: 0.7236 MB / 344.1 MB, free: 4.426 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.1235, allocations: 90.41 kB / 344.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.1237, allocations: 120 kB / 344.3 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/0.1257, allocations: 1.268 MB / 345.6 MB, free: 2.777 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.552e-05/0.1258, allocations: 11.88 kB / 345.6 MB, free: 2.766 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.536e-05/0.1259, allocations: 48 kB / 345.6 MB, free: 2.719 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.294e-05/0.1259, allocations: 35.98 kB / 345.7 MB, free: 2.684 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.1272, allocations: 0.7007 MB / 346.4 MB, free: 1.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006337/0.1336, allocations: 6.832 MB / 353.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007413/0.1343, allocations: 265.2 kB / 353.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003873/0.1347, allocations: 181.7 kB / 353.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000185/0.1349, allocations: 81.11 kB / 353.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.135, allocations: 46.5 kB / 353.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.414e-06/0.135, allocations: 0 / 353.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002582/0.1376, allocations: 1.416 MB / 355.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/0.1376, allocations: 85.11 kB / 355.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007736/0.1384, allocations: 0.6569 MB / 355.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.1385, allocations: 37.64 kB / 356 MB, free: 7.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005052/0.139, allocations: 0.6836 MB / 356.6 MB, free: 7.164 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.1391, allocations: 110.5 kB / 356.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.757e-05/0.1392, allocations: 69.69 kB / 356.8 MB, free: 6.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.1394, allocations: 382.8 kB / 357.2 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002939/0.1397, allocations: 149.9 kB / 357.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006311/0.1403, allocations: 0.5585 MB / 357.9 MB, free: 5.695 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.001232/0.1416, allocations: 0.9619 MB / 358.9 MB, free: 4.496 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.1416, allocations: 4 kB / 358.9 MB, free: 4.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001254/0.1429, allocations: 0.8021 MB / 359.7 MB, free: 3.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.1429, allocations: 12 kB / 359.7 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.1429, allocations: 12 kB / 359.7 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002809/0.1432, allocations: 90.33 kB / 359.8 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005533/0.1438, allocations: 191.6 kB / 360 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002434/0.1462, allocations: 2.99 MB / 363 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003715/0.1466, allocations: 35.98 kB / 363 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/0.1467, allocations: 40 kB / 363 MB, free: 48 kB / 302.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 (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.0004475/0.1471, allocations: 273.5 kB / 363.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.1472, allocations: 79.05 kB / 363.4 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/0.1474, allocations: 78.42 kB / 363.4 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1474, allocations: 0 / 363.4 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.1474, allocations: 4 kB / 363.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.1474, allocations: 3.984 kB / 363.5 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001788/0.1492, allocations: 1.255 MB / 364.7 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.1492, allocations: 3.984 kB / 364.7 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003158/0.1496, allocations: 71.84 kB / 364.8 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001606/0.1497, allocations: 61.77 kB / 364.8 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.1498, allocations: 8 kB / 364.9 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001922/0.1517, allocations: 2.779 MB / 367.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1517, allocations: 4.156 kB / 367.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008497/0.1526, allocations: 0.6467 MB / 368.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.1527, allocations: 144.2 kB / 368.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.183e-05/0.1528, allocations: 11.98 kB / 368.4 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.153, allocations: 20 kB / 368.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.1e-05/0.1531, allocations: 31.89 kB / 368.5 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.1531, allocations: 4 kB / 368.5 MB, free: 10.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005354/0.1537, allocations: 439 kB / 368.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1537, allocations: 0 / 368.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009167/0.1546, allocations: 156 kB / 369.1 MB, free: 9.594 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.001301/0.1559, allocations: 1.193 MB / 370.3 MB, free: 8.359 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.157, allocations: 0.6594 MB / 370.9 MB, free: 7.676 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.157, allocations: 5.25 kB / 370.9 MB, free: 7.672 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004807/0.1575, allocations: 369.4 kB / 371.3 MB, free: 7.285 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000625/0.1581, allocations: 79.22 kB / 371.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1875/0.3456, allocations: 7.241 MB / 378.6 MB, free: 50.8 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005639/0.3462, allocations: 1.033 MB / 379.6 MB, free: 50.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003709/0.3466, allocations: 87.36 kB / 379.7 MB, free: 50.1 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004651/0.3471, allocations: 424.3 kB / 380.1 MB, free: 50.09 MB / 318.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3471, allocations: 0 / 380.1 MB, free: 50.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02769/0.3748, allocations: 11.79 MB / 391.9 MB, free: 46.64 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/0.375, allocations: 225.1 kB / 392.1 MB, free: 46.39 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.083/2.458, allocations: 0 / 392.1 MB, free: 46.39 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