Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: 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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001497, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.001867/0.001867, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.197/2.197, allocations: 222.9 MB / 241.8 MB, free: 13.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002127, allocations: 51.95 kB / 300.6 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.165, allocations: 49.44 MB / 350.1 MB, free: 4.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.01288/0.1779, allocations: 5.964 MB / 356 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005519/0.1835, allocations: 1.617 MB / 357.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001946/0.1855, allocations: 31.81 kB / 357.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001395/0.1869, allocations: 186.5 kB / 357.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001876/0.1889, allocations: 170.5 kB / 358 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00236/0.1913, allocations: 451.6 kB / 358.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003142/0.1945, allocations: 1.305 MB / 359.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.1962, allocations: 0.5491 MB / 360.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001425/0.1976, allocations: 418.1 kB / 360.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001187/0.1988, allocations: 485.2 kB / 361.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003434/0.1992, allocations: 72 kB / 361.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004762/0.1997, allocations: 80 kB / 361.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003366/0.2001, allocations: 219.1 kB / 361.6 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001303/0.2014, allocations: 0.5708 MB / 362.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002116/0.2035, allocations: 1.185 MB / 363.3 MB, free: 7.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.924e-06/0.2035, allocations: 7.938 kB / 363.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2036, allocations: 0 / 363.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000109/0.2037, allocations: 0 / 363.3 MB, free: 7.258 MB / 302.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.005199/0.2089, allocations: 1.458 MB / 364.8 MB, free: 5.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/0.209, allocations: 12.03 kB / 364.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005706/0.2095, allocations: 142.2 kB / 364.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002242/0.2118, allocations: 0.7121 MB / 365.6 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/0.212, allocations: 90.41 kB / 365.7 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003769/0.2124, allocations: 120 kB / 365.8 MB, free: 4.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004585/0.217, allocations: 1.268 MB / 367.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.502e-05/0.2171, allocations: 7.938 kB / 367.1 MB, free: 3.188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002241/0.2174, allocations: 52 kB / 367.2 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/0.2176, allocations: 32 kB / 367.2 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002889/0.2205, allocations: 0.689 MB / 367.9 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2909/0.5114, allocations: 6.813 MB / 374.7 MB, free: 19.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.5126, allocations: 272.6 kB / 375 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006084/0.5132, allocations: 181.8 kB / 375.2 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002252/0.5135, allocations: 85.08 kB / 375.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.5136, allocations: 41.02 kB / 375.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 4.779e-06/0.5136, allocations: 0 / 375.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.004676/0.5183, allocations: 1.39 MB / 376.7 MB, free: 18.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.07e-05/0.5184, allocations: 89.19 kB / 376.8 MB, free: 18.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002135/0.5205, allocations: 0.6585 MB / 377.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.5206, allocations: 30.98 kB / 377.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007521/0.5213, allocations: 0.68 MB / 378.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.5216, allocations: 114.2 kB / 378.2 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004289/0.522, allocations: 153.8 kB / 378.4 MB, free: 17.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002363/0.5223, allocations: 386.3 kB / 378.8 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000601/0.5229, allocations: 146 kB / 378.9 MB, free: 17.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008857/0.5238, allocations: 0.5445 MB / 379.4 MB, free: 16.8 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.001823/0.5256, allocations: 0.963 MB / 380.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.32e-05/0.5257, allocations: 4.125 kB / 380.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002727/0.5284, allocations: 0.7939 MB / 381.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.214e-05/0.5285, allocations: 10.91 kB / 381.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.577e-05/0.5286, allocations: 15.78 kB / 381.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005149/0.5291, allocations: 89.7 kB / 381.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.5302, allocations: 176.7 kB / 381.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003492/0.5337, allocations: 2.982 MB / 384.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.5348, allocations: 31.17 kB / 384.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/0.5349, allocations: 44.59 kB / 384.6 MB, free: 12.52 MB / 302.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.0009156/0.5359, allocations: 279.4 kB / 384.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003473/0.5362, allocations: 77.95 kB / 384.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002615/0.5365, allocations: 70.31 kB / 385 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.5365, allocations: 3.594 kB / 385 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/0.5365, allocations: 3.344 kB / 385 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.5366, allocations: 1.281 kB / 385 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004036/0.5406, allocations: 1.252 MB / 386.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.497e-06/0.5406, allocations: 1.797 kB / 386.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005231/0.5412, allocations: 64.94 kB / 386.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002916/0.5415, allocations: 60.22 kB / 386.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.794e-05/0.5415, allocations: 8.812 kB / 386.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002669/0.5442, allocations: 2.778 MB / 389.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/0.5442, allocations: 6.031 kB / 389.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.5459, allocations: 0.6339 MB / 389.8 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003469/0.5463, allocations: 141.6 kB / 389.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001948/0.5465, allocations: 14.94 kB / 389.9 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005988/0.5471, allocations: 18.09 kB / 390 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.5473, allocations: 18.11 kB / 390 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-05/0.5473, allocations: 12.22 kB / 390 MB, free: 8.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001328/0.5487, allocations: 441 kB / 390.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5487, allocations: 0 / 390.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002107/0.5508, allocations: 159.4 kB / 390.6 MB, free: 7.879 MB / 302.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.0002508/0.5511, allocations: 104.5 kB / 390.7 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001983/0.5531, allocations: 0.6542 MB / 391.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.5531, allocations: 0 / 391.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007982/0.5539, allocations: 358.8 kB / 391.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.5551, allocations: 86.41 kB / 391.8 MB, free: 7.098 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006687/0.5618, allocations: 2.366 MB / 394.1 MB, free: 5.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001486/0.5634, allocations: 1.042 MB / 395.2 MB, free: 4.742 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/0.5638, allocations: 73.86 kB / 395.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of SimCode: time 2.204e-06/0.5638, allocations: 0 / 395.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of Templates: time 0.03401/0.5978, allocations: 19.51 MB / 414.7 MB, free: 6.645 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches