Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009265/0.0009266, allocations: 90.59 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 199.6 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.606/1.606, allocations: 227.7 MB / 246.8 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003486, allocations: 8 kB / 307.7 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1364, allocations: 51.53 MB / 359.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.00793/0.1444, allocations: 5.51 MB / 364.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004588/0.149, allocations: 1.683 MB / 366.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001589/0.1507, allocations: 31.81 kB / 366.5 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009433/0.1516, allocations: 186.5 kB / 366.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001387/0.153, allocations: 174.5 kB / 366.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001681/0.1547, allocations: 463.5 kB / 367.3 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002367/0.1571, allocations: 1.301 MB / 368.6 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/0.1583, allocations: 0.5452 MB / 369.1 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008161/0.1592, allocations: 374.1 kB / 369.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006921/0.1599, allocations: 409.4 kB / 369.9 MB, free: 2.613 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002165/0.1601, allocations: 52 kB / 370 MB, free: 2.562 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003696/0.1605, allocations: 63.98 kB / 370 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.1607, allocations: 191 kB / 370.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000708/0.1614, allocations: 0.5374 MB / 370.7 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.163, allocations: 1.424 MB / 372.2 MB, free: 344 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.163, allocations: 0 / 372.2 MB, free: 344 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.163, allocations: 0 / 372.2 MB, free: 344 kB / 302.1 MB Notification: Performance of Transformations before backend: time 6.959e-05/0.1631, allocations: 0 / 372.2 MB, free: 344 kB / 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.2784/0.4415, allocations: 1.233 MB / 373.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.948e-05/0.4415, allocations: 9.609 kB / 373.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004659/0.442, allocations: 163 kB / 373.6 MB, free: 18.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.4432, allocations: 0.7229 MB / 374.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.954e-05/0.4432, allocations: 87.81 kB / 374.4 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001987/0.4435, allocations: 120.2 kB / 374.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002502/0.446, allocations: 1.276 MB / 375.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.029e-05/0.446, allocations: 7.953 kB / 375.8 MB, free: 18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001513/0.4462, allocations: 57.19 kB / 375.8 MB, free: 18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-05/0.4462, allocations: 32.44 kB / 375.9 MB, free: 18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.4478, allocations: 0.698 MB / 376.6 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006224/0.454, allocations: 6.829 MB / 383.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000837/0.4549, allocations: 272.7 kB / 383.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000439/0.4553, allocations: 184.9 kB / 383.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002111/0.4556, allocations: 85.11 kB / 383.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.4556, allocations: 37.66 kB / 384 MB, free: 11.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.135e-06/0.4556, allocations: 0 / 384 MB, free: 11.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.003166/0.4588, allocations: 1.417 MB / 385.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.4589, allocations: 81.44 kB / 385.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.4599, allocations: 0.6691 MB / 386.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.4599, allocations: 28.05 kB / 386.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005172/0.4605, allocations: 0.6807 MB / 386.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.4606, allocations: 120.4 kB / 387 MB, free: 9.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.27e-05/0.4607, allocations: 68.77 kB / 387 MB, free: 9.633 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.4609, allocations: 387.6 kB / 387.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003327/0.4612, allocations: 147.1 kB / 387.5 MB, free: 9.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005599/0.4618, allocations: 0.5483 MB / 388.1 MB, free: 8.637 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.001171/0.4629, allocations: 0.9864 MB / 389.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/0.463, allocations: 8.969 kB / 389.1 MB, free: 7.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001383/0.4644, allocations: 0.7913 MB / 389.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.4644, allocations: 15.09 kB / 389.9 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.4644, allocations: 16.19 kB / 389.9 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/0.4647, allocations: 82.77 kB / 390 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006018/0.4653, allocations: 182.8 kB / 390.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002178/0.4675, allocations: 2.99 MB / 393.2 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/0.468, allocations: 34.12 kB / 393.2 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.976e-05/0.4681, allocations: 39.25 kB / 393.2 MB, free: 4.34 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 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.000543/0.4686, allocations: 276.7 kB / 393.5 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.4688, allocations: 75.27 kB / 393.6 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.4689, allocations: 73.97 kB / 393.6 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.4689, allocations: 2.656 kB / 393.7 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/0.4689, allocations: 2.812 kB / 393.7 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4689, allocations: 6 kB / 393.7 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/0.4713, allocations: 1.267 MB / 394.9 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.4713, allocations: 2.094 kB / 394.9 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004074/0.4717, allocations: 69.53 kB / 395 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002351/0.472, allocations: 56.72 kB / 395.1 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.472, allocations: 8.672 kB / 395.1 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002507/0.4745, allocations: 2.777 MB / 397.8 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.4746, allocations: 4.875 kB / 397.8 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.4757, allocations: 0.6465 MB / 398.5 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.4759, allocations: 144.5 kB / 398.6 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.543e-05/0.476, allocations: 8.562 kB / 398.6 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000418/0.4764, allocations: 17.98 kB / 398.7 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.062e-05/0.4765, allocations: 22.97 kB / 398.7 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.206e-05/0.4765, allocations: 12.81 kB / 398.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007006/0.4773, allocations: 444 kB / 399.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4773, allocations: 0 / 399.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001162/0.4784, allocations: 155.3 kB / 399.3 MB, free: 15.68 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.0001741/0.4786, allocations: 106.8 kB / 399.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.4801, allocations: 0.6659 MB / 400 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4801, allocations: 2.406 kB / 400.1 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006936/0.4808, allocations: 363 kB / 400.4 MB, free: 14.94 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006836/0.4815, allocations: 82.17 kB / 400.5 MB, free: 14.9 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004834/0.4864, allocations: 2.444 MB / 402.9 MB, free: 13.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.4874, allocations: 1.038 MB / 404 MB, free: 12.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003704/0.4878, allocations: 92.03 kB / 404.1 MB, free: 12.28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.488, allocations: 58.92 kB / 404.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.488, allocations: 0 / 404.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of Templates: time 0.01266/0.5006, allocations: 5.148 MB / 409.3 MB, free: 9.59 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches