Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009399/0.0009399, allocations: 169.9 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007885/0.0007886, allocations: 91.83 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003947/0.0003947, allocations: 16 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2019, allocations: 47.58 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.004139/0.206, allocations: 5.121 MB / 380.3 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.2083, allocations: 1.61 MB / 381.9 MB, free: 40.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004566/0.2088, allocations: 28.12 kB / 381.9 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002949/0.2091, allocations: 175.7 kB / 382.1 MB, free: 39.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003187/0.2094, allocations: 167.6 kB / 382.3 MB, free: 39.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.2101, allocations: 331.4 kB / 382.6 MB, free: 39.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009746/0.2111, allocations: 1.279 MB / 383.9 MB, free: 38.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006307/0.2117, allocations: 0.5256 MB / 384.4 MB, free: 38.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/0.2121, allocations: 359.1 kB / 384.8 MB, free: 38.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002969/0.2124, allocations: 396.8 kB / 385.1 MB, free: 37.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.356e-05/0.2125, allocations: 48.91 kB / 385.2 MB, free: 37.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.2126, allocations: 64.52 kB / 385.3 MB, free: 37.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.2127, allocations: 165.7 kB / 385.4 MB, free: 37.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003171/0.2131, allocations: 0.5156 MB / 385.9 MB, free: 37.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007174/0.2138, allocations: 1.161 MB / 387.1 MB, free: 36.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2138, allocations: 1.406 kB / 387.1 MB, free: 36.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2138, allocations: 0 / 387.1 MB, free: 36.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.2138, allocations: 0 / 387.1 MB, free: 36.45 MB / 298.7 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.001463/0.2153, allocations: 1.238 MB / 388.3 MB, free: 35.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.2153, allocations: 12.03 kB / 388.3 MB, free: 35.42 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.2155, allocations: 173.7 kB / 388.5 MB, free: 35.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.2156, allocations: 146.2 kB / 388.7 MB, free: 35.1 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007018/0.2163, allocations: 0.7199 MB / 389.4 MB, free: 34.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.22e-05/0.2164, allocations: 86.41 kB / 389.5 MB, free: 34.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.2165, allocations: 123.9 kB / 389.6 MB, free: 34.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.218, allocations: 1.256 MB / 390.8 MB, free: 32.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.069e-05/0.218, allocations: 11.94 kB / 390.9 MB, free: 32.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.038e-05/0.2181, allocations: 60 kB / 390.9 MB, free: 32.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.024e-05/0.2181, allocations: 32 kB / 390.9 MB, free: 32.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.2192, allocations: 0.6851 MB / 391.6 MB, free: 31.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003777/0.223, allocations: 6.832 MB / 398.5 MB, free: 24.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005462/0.2235, allocations: 277.4 kB / 398.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.2238, allocations: 186 kB / 398.9 MB, free: 24.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.2239, allocations: 89.05 kB / 399 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.515e-05/0.224, allocations: 34.56 kB / 399 MB, free: 24.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.834e-06/0.224, allocations: 0 / 399 MB, free: 24.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001846/0.2258, allocations: 1.421 MB / 400.5 MB, free: 22.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.2259, allocations: 85.11 kB / 400.5 MB, free: 22.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005262/0.2264, allocations: 0.6452 MB / 401.2 MB, free: 21.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.2264, allocations: 33.7 kB / 401.2 MB, free: 21.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/0.2267, allocations: 0.672 MB / 401.9 MB, free: 21.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.353e-05/0.2267, allocations: 126.4 kB / 402 MB, free: 20.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.189e-05/0.2267, allocations: 16 kB / 402 MB, free: 20.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.392e-05/0.2268, allocations: 382.8 kB / 402.4 MB, free: 20.58 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002274/0.2271, allocations: 157.9 kB / 402.6 MB, free: 20.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.2274, allocations: 0.5506 MB / 403.1 MB, free: 19.68 MB / 298.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v ($START.directCapacitor1.currentToVoltage.y = $START.inverseCapacitor1.capacitor.v) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i ($START.directInductor3.currentToVoltage.y = $START.inverseInductor3.inductor.i) Notification: Performance of analyzeInitialSystem (initialization): time 0.0007588/0.2282, allocations: 0.9623 MB / 404.1 MB, free: 18.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.2282, allocations: 4 kB / 404.1 MB, free: 18.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0009588/0.2291, allocations: 0.7917 MB / 404.9 MB, free: 17.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.2292, allocations: 12 kB / 404.9 MB, free: 17.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.2292, allocations: 16.69 kB / 404.9 MB, free: 17.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000203/0.2294, allocations: 81.69 kB / 405 MB, free: 17.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000449/0.2299, allocations: 187.7 kB / 405.2 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/0.2314, allocations: 2.982 MB / 408.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003253/0.2317, allocations: 32 kB / 408.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.2317, allocations: 44 kB / 408.2 MB, free: 14.06 MB / 298.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i. 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.0002738/0.232, allocations: 270.4 kB / 408.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-05/0.2321, allocations: 75.06 kB / 408.5 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.586e-05/0.2322, allocations: 78.34 kB / 408.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.2322, allocations: 4 kB / 408.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.2322, allocations: 0 / 408.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2322, allocations: 0 / 408.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.2335, allocations: 1.259 MB / 409.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2336, allocations: 0 / 409.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002858/0.2339, allocations: 75.92 kB / 410 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001386/0.234, allocations: 57.69 kB / 410 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.234, allocations: 4 kB / 410 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/0.2352, allocations: 2.787 MB / 412.8 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2352, allocations: 4.031 kB / 412.8 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006588/0.2359, allocations: 0.6488 MB / 413.5 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.875e-05/0.236, allocations: 140.1 kB / 413.6 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.288e-05/0.236, allocations: 4.062 kB / 413.6 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.2363, allocations: 23.98 kB / 413.6 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.544e-05/0.2364, allocations: 27.91 kB / 413.7 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.2364, allocations: 12 kB / 413.7 MB, free: 8.199 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000345/0.2367, allocations: 427 kB / 414.1 MB, free: 7.789 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2367, allocations: 0 / 414.1 MB, free: 7.789 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000744/0.2375, allocations: 156 kB / 414.2 MB, free: 7.637 MB / 298.7 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 (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.0008242/0.2383, allocations: 1.193 MB / 415.4 MB, free: 6.402 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007788/0.2391, allocations: 0.664 MB / 416.1 MB, free: 5.715 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2391, allocations: 0 / 416.1 MB, free: 5.715 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000348/0.2395, allocations: 369.6 kB / 416.5 MB, free: 5.328 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005598/0.24, allocations: 77.39 kB / 416.5 MB, free: 5.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005151/0.2452, allocations: 5.043 MB / 421.6 MB, free: 15.94 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005977/0.2458, allocations: 1.031 MB / 422.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004639/0.2463, allocations: 427.3 kB / 423 MB, free: 14.46 MB / 314.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2463, allocations: 4 kB / 423 MB, free: 14.46 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.882/4.128, allocations: 23.18 MB / 446.2 MB, free: 7.227 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches