Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001036/0.001036, allocations: 199.9 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007703/0.0007703, allocations: 95.42 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002322/0.0002323, allocations: 4 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.1884, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.004062/0.1925, allocations: 5.164 MB / 413.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002426/0.195, allocations: 1.615 MB / 414.8 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005355/0.1955, allocations: 31.81 kB / 414.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003629/0.1959, allocations: 168 kB / 415 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000356/0.1963, allocations: 179.7 kB / 415.2 MB, free: 20.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000694/0.197, allocations: 329.3 kB / 415.5 MB, free: 20.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008681/0.1979, allocations: 1.27 MB / 416.8 MB, free: 18.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005862/0.1985, allocations: 0.5428 MB / 417.3 MB, free: 18.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003427/0.1988, allocations: 362.3 kB / 417.7 MB, free: 18.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000272/0.1991, allocations: 385.7 kB / 418.1 MB, free: 17.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.355e-05/0.1992, allocations: 52 kB / 418.1 MB, free: 17.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.1993, allocations: 67.98 kB / 418.2 MB, free: 17.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.305e-05/0.1994, allocations: 179.1 kB / 418.4 MB, free: 17.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002995/0.1997, allocations: 0.5106 MB / 418.9 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000636/0.2004, allocations: 1.162 MB / 420 MB, free: 15.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2004, allocations: 0 / 420 MB, free: 15.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2004, allocations: 0 / 420 MB, free: 15.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.2004, allocations: 4 kB / 420 MB, free: 15.67 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.001355/0.2018, allocations: 1.232 MB / 421.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2018, allocations: 16.02 kB / 421.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/0.2021, allocations: 162.2 kB / 421.4 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007537/0.2029, allocations: 0.7198 MB / 422.2 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.815e-05/0.203, allocations: 94.41 kB / 422.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.2031, allocations: 116 kB / 422.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.2045, allocations: 1.26 MB / 423.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.316e-05/0.2046, allocations: 7.938 kB / 423.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.687e-05/0.2047, allocations: 52 kB / 423.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.2047, allocations: 32 kB / 423.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.2058, allocations: 0.6929 MB / 424.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004037/0.2098, allocations: 6.82 MB / 431.2 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005676/0.2104, allocations: 281.2 kB / 431.5 MB, free: 3.574 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002835/0.2107, allocations: 182.1 kB / 431.7 MB, free: 3.391 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.2108, allocations: 89.09 kB / 431.8 MB, free: 3.285 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.987e-05/0.2109, allocations: 38.56 kB / 431.8 MB, free: 3.238 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 3.066e-06/0.2109, allocations: 4 kB / 431.8 MB, free: 3.234 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001925/0.2128, allocations: 1.411 MB / 433.2 MB, free: 1.715 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.2128, allocations: 85.11 kB / 433.3 MB, free: 1.613 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005337/0.2134, allocations: 0.6491 MB / 433.9 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.2134, allocations: 29.7 kB / 434 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.2136, allocations: 0.6836 MB / 434.7 MB, free: 224 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.557e-05/0.2137, allocations: 114.5 kB / 434.8 MB, free: 108 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-05/0.2137, allocations: 12 kB / 434.8 MB, free: 96 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.2139, allocations: 390.7 kB / 435.2 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.2142, allocations: 149.9 kB / 435.3 MB, free: 15.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004982/0.2147, allocations: 0.5507 MB / 435.9 MB, free: 14.8 MB / 314.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.001087/0.2158, allocations: 0.9598 MB / 436.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.2158, allocations: 4 kB / 436.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001288/0.2171, allocations: 0.7977 MB / 437.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.2171, allocations: 12 kB / 437.6 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/0.2172, allocations: 16 kB / 437.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000308/0.2175, allocations: 86.38 kB / 437.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005453/0.218, allocations: 183.7 kB / 437.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002647/0.2207, allocations: 2.978 MB / 440.9 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003989/0.2211, allocations: 39.92 kB / 440.9 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.721e-05/0.2212, allocations: 44 kB / 441 MB, free: 9.172 MB / 314.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.0004321/0.2216, allocations: 269.5 kB / 441.2 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.2217, allocations: 75.12 kB / 441.3 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.2218, allocations: 78.47 kB / 441.4 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.2218, allocations: 4 kB / 441.4 MB, free: 8.742 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.2219, allocations: 4 kB / 441.4 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.2219, allocations: 4 kB / 441.4 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001771/0.2236, allocations: 1.247 MB / 442.6 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2237, allocations: 0 / 442.6 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003021/0.224, allocations: 63.91 kB / 442.7 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001655/0.2241, allocations: 73.78 kB / 442.8 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.2242, allocations: 8 kB / 442.8 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001912/0.2261, allocations: 2.772 MB / 445.6 MB, free: 4.227 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2261, allocations: 8.062 kB / 445.6 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008666/0.227, allocations: 0.642 MB / 446.2 MB, free: 3.543 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.2271, allocations: 140.2 kB / 446.3 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.088e-05/0.2272, allocations: 12.19 kB / 446.4 MB, free: 3.375 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.2274, allocations: 23.98 kB / 446.4 MB, free: 3.352 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/0.2275, allocations: 23.91 kB / 446.4 MB, free: 3.328 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.2275, allocations: 12 kB / 446.4 MB, free: 3.316 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005163/0.228, allocations: 427 kB / 446.8 MB, free: 2.906 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2281, allocations: 0 / 446.8 MB, free: 2.906 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008362/0.2289, allocations: 160 kB / 447 MB, free: 2.75 MB / 314.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.0001404/0.229, allocations: 114.1 kB / 447.1 MB, free: 2.633 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.2301, allocations: 0.653 MB / 447.8 MB, free: 1.957 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2301, allocations: 0 / 447.8 MB, free: 1.957 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004591/0.2306, allocations: 365.2 kB / 448.1 MB, free: 1.574 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006147/0.2312, allocations: 78.08 kB / 448.2 MB, free: 1.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003018/0.2342, allocations: 2.37 MB / 450.6 MB, free: 15.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/0.2348, allocations: 1.034 MB / 451.6 MB, free: 14.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.235, allocations: 59.42 kB / 451.6 MB, free: 13.96 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.235, allocations: 0 / 451.6 MB, free: 13.96 MB / 330.7 MB Notification: Performance of Templates: time 0.01981/0.2548, allocations: 19.34 MB / 471 MB, free: 10.62 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches