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.001332/0.001332, allocations: 97.98 kB / 17.58 MB, free: 5.418 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.001539/0.001539, allocations: 192 kB / 18.51 MB, free: 4.508 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.325/1.325, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001273/0.001273, allocations: 55.94 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1133, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007803/0.1212, allocations: 5.961 MB / 333.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003188/0.1244, allocations: 1.691 MB / 335 MB, free: 12.69 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004201/0.1248, allocations: 27.88 kB / 335.1 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005134/0.1254, allocations: 257.5 kB / 335.3 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004717/0.1259, allocations: 217.7 kB / 335.5 MB, free: 12.19 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.1269, allocations: 0.5032 MB / 336 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.1283, allocations: 1.384 MB / 337.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009242/0.1292, allocations: 0.6091 MB / 338 MB, free: 9.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006908/0.1299, allocations: 482.1 kB / 338.5 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005755/0.1305, allocations: 0.4895 MB / 339 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001912/0.1307, allocations: 120 kB / 339.1 MB, free: 8.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002924/0.131, allocations: 144 kB / 339.2 MB, free: 8.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002499/0.1313, allocations: 267 kB / 339.5 MB, free: 8.188 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005846/0.1319, allocations: 0.6022 MB / 340.1 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001829/0.1337, allocations: 1.569 MB / 341.7 MB, free: 6.008 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1337, allocations: 7.938 kB / 341.7 MB, free: 6 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1337, allocations: 0 / 341.7 MB, free: 6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.013e-05/0.1338, allocations: 0 / 341.7 MB, free: 6 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.00238/0.1362, allocations: 1.454 MB / 343.1 MB, free: 4.492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.1362, allocations: 16.02 kB / 343.1 MB, free: 4.477 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002527/0.1365, allocations: 173.7 kB / 343.3 MB, free: 4.297 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.1367, allocations: 142.3 kB / 343.5 MB, free: 4.156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009766/0.1377, allocations: 0.7159 MB / 344.2 MB, free: 3.398 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-05/0.1378, allocations: 94.41 kB / 344.3 MB, free: 3.305 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000154/0.1379, allocations: 120 kB / 344.4 MB, free: 3.188 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00196/0.1399, allocations: 1.268 MB / 345.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.421e-05/0.1399, allocations: 7.938 kB / 345.7 MB, free: 1.738 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.116e-05/0.14, allocations: 52 kB / 345.7 MB, free: 1.688 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.202e-05/0.1401, allocations: 32 kB / 345.7 MB, free: 1.656 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.1414, allocations: 0.6851 MB / 346.4 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006529/0.1479, allocations: 6.828 MB / 353.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007275/0.1487, allocations: 269.2 kB / 353.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003895/0.1491, allocations: 189.6 kB / 353.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002328/0.1493, allocations: 81.11 kB / 353.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.1493, allocations: 34.56 kB / 353.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.635e-06/0.1494, allocations: 0 / 353.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00253/0.1519, allocations: 1.401 MB / 355.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.152, allocations: 77.11 kB / 355.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008434/0.1528, allocations: 0.6647 MB / 356 MB, free: 6.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.1528, allocations: 29.7 kB / 356 MB, free: 6.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005202/0.1534, allocations: 0.6875 MB / 356.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.976e-05/0.1535, allocations: 118.4 kB / 356.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/0.1537, allocations: 138.5 kB / 356.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.1539, allocations: 386.8 kB / 357.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002868/0.1542, allocations: 149.9 kB / 357.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/0.1548, allocations: 0.5507 MB / 358 MB, free: 4.625 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.001241/0.156, allocations: 0.9533 MB / 358.9 MB, free: 3.438 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.156, allocations: 4 kB / 359 MB, free: 3.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001295/0.1573, allocations: 0.787 MB / 359.7 MB, free: 2.633 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.1574, allocations: 15.98 kB / 359.8 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.211e-05/0.1574, allocations: 16 kB / 359.8 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002673/0.1577, allocations: 82.38 kB / 359.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005226/0.1582, allocations: 183.7 kB / 360 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002914/0.1611, allocations: 3.328 MB / 363.4 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004115/0.1616, allocations: 40.06 kB / 363.4 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.601e-05/0.1616, allocations: 43.98 kB / 363.4 MB, free: 14.65 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.0004272/0.162, allocations: 269.4 kB / 363.7 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.1622, allocations: 75.06 kB / 363.8 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.1623, allocations: 70.41 kB / 363.8 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1623, allocations: 11.88 kB / 363.9 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.1623, allocations: 0 / 363.9 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.1623, allocations: 3.984 kB / 363.9 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.164, allocations: 1.243 MB / 365.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.1641, allocations: 12.16 kB / 365.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003081/0.1644, allocations: 67.95 kB / 365.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001471/0.1645, allocations: 53.77 kB / 365.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.1646, allocations: 11.98 kB / 365.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00231/0.1669, allocations: 3.061 MB / 368.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1669, allocations: 3.938 kB / 368.3 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008478/0.1677, allocations: 0.6235 MB / 368.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.1679, allocations: 140.2 kB / 369.1 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.159e-05/0.1679, allocations: 11.94 kB / 369.1 MB, free: 8.582 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/0.1682, allocations: 15.98 kB / 369.1 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.65e-05/0.1683, allocations: 27.91 kB / 369.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.1683, allocations: 8 kB / 369.1 MB, free: 8.531 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005159/0.1688, allocations: 439 kB / 369.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1689, allocations: 4 kB / 369.6 MB, free: 8.105 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008057/0.1697, allocations: 152 kB / 369.7 MB, free: 7.957 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.00128/0.171, allocations: 1.188 MB / 370.9 MB, free: 6.727 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.172, allocations: 0.6556 MB / 371.6 MB, free: 6.047 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.172, allocations: 0 / 371.6 MB, free: 6.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005213/0.1725, allocations: 366.8 kB / 371.9 MB, free: 5.664 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005718/0.1731, allocations: 87.73 kB / 372 MB, free: 5.574 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1605/0.3336, allocations: 6.653 MB / 378.7 MB, free: 51.4 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.3342, allocations: 1.03 MB / 379.7 MB, free: 50.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003446/0.3345, allocations: 85.97 kB / 379.8 MB, free: 50.69 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004056/0.3349, allocations: 425.7 kB / 380.2 MB, free: 50.68 MB / 318.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3349, allocations: 0 / 380.2 MB, free: 50.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07726/0.4122, allocations: 12.34 MB / 392.5 MB, free: 46.74 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.143/9.555, allocations: 8.562 kB / 392.5 MB, free: 46.73 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches