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: 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_3.2.3_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_3.2.3_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.001325/0.001325, allocations: 104.2 kB / 18.4 MB, free: 4.68 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.001388/0.001388, allocations: 188.3 kB / 19.33 MB, free: 3.758 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.47/1.47, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001355/0.001355, allocations: 51.94 kB / 329.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1074, allocations: 46.62 MB / 375.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.2442/0.3516, allocations: 5.943 MB / 381.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003802/0.3555, allocations: 1.695 MB / 383.5 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008337/0.3563, allocations: 29.72 kB / 383.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006173/0.357, allocations: 246.7 kB / 383.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006386/0.3577, allocations: 221.7 kB / 384 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.359, allocations: 0.5013 MB / 384.5 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001975/0.361, allocations: 1.395 MB / 385.9 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009617/0.3619, allocations: 0.6221 MB / 386.5 MB, free: 8.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007526/0.3627, allocations: 484.6 kB / 386.9 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000606/0.3633, allocations: 0.4979 MB / 387.4 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001794/0.3635, allocations: 122.9 kB / 387.6 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003012/0.3638, allocations: 136.2 kB / 387.7 MB, free: 7.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002089/0.364, allocations: 261.7 kB / 388 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005261/0.3646, allocations: 0.614 MB / 388.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002095/0.3667, allocations: 1.618 MB / 390.2 MB, free: 6.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.3667, allocations: 0 / 390.2 MB, free: 6.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.3667, allocations: 0 / 390.2 MB, free: 6.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.461e-05/0.3668, allocations: 0 / 390.2 MB, free: 6.375 MB / 318.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.002383/0.3691, allocations: 1.457 MB / 391.6 MB, free: 5.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.3692, allocations: 13.78 kB / 391.7 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002643/0.3695, allocations: 143.1 kB / 391.8 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001288/0.3708, allocations: 0.757 MB / 392.6 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.631e-05/0.3709, allocations: 87.16 kB / 392.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/0.371, allocations: 121.6 kB / 392.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002166/0.3732, allocations: 1.265 MB / 394 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.509e-05/0.3733, allocations: 6.469 kB / 394 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.809e-05/0.3734, allocations: 54.22 kB / 394.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.488e-05/0.3734, allocations: 36.66 kB / 394.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001363/0.3748, allocations: 0.6837 MB / 394.8 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006102/0.3809, allocations: 6.773 MB / 401.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007269/0.3817, allocations: 271.8 kB / 401.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000394/0.3821, allocations: 182.6 kB / 402 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001432/0.3822, allocations: 86.03 kB / 402.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.3823, allocations: 37.44 kB / 402.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.906e-06/0.3823, allocations: 0 / 402.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002553/0.3848, allocations: 1.403 MB / 403.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.3849, allocations: 80.39 kB / 403.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008196/0.3857, allocations: 0.6618 MB / 404.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.3858, allocations: 35.11 kB / 404.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004736/0.3863, allocations: 0.6788 MB / 405 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.899e-05/0.3864, allocations: 118.1 kB / 405.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.3865, allocations: 152.6 kB / 405.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3867, allocations: 384.5 kB / 405.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.387, allocations: 143 kB / 405.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006347/0.3877, allocations: 0.5538 MB / 406.3 MB, free: 10.45 MB / 334.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.001325/0.389, allocations: 0.9461 MB / 407.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.194e-05/0.389, allocations: 4.469 kB / 407.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001561/0.3906, allocations: 0.7955 MB / 408.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.88e-05/0.3906, allocations: 12.25 kB / 408.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-05/0.3907, allocations: 13.78 kB / 408.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003553/0.391, allocations: 87.69 kB / 408.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008441/0.3919, allocations: 181.4 kB / 408.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002883/0.3948, allocations: 3.329 MB / 411.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005039/0.3953, allocations: 37.27 kB / 411.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-05/0.3954, allocations: 44.25 kB / 411.8 MB, free: 5.734 MB / 334.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.0005508/0.3959, allocations: 270.2 kB / 412 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.3961, allocations: 77.38 kB / 412.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/0.3962, allocations: 75.02 kB / 412.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.3962, allocations: 7.453 kB / 412.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.3963, allocations: 2.5 kB / 412.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.3963, allocations: 1.125 kB / 412.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001997/0.3983, allocations: 1.252 MB / 413.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.3983, allocations: 1.125 kB / 413.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003144/0.3986, allocations: 57.41 kB / 413.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001883/0.3988, allocations: 62.8 kB / 413.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.3988, allocations: 11.38 kB / 413.6 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002177/0.401, allocations: 3.052 MB / 416.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4011, allocations: 5.25 kB / 416.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009912/0.4021, allocations: 0.6361 MB / 417.3 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.4022, allocations: 135 kB / 417.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.518e-05/0.4023, allocations: 7.375 kB / 417.4 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.4025, allocations: 21.44 kB / 417.4 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.339e-05/0.4026, allocations: 30.44 kB / 417.5 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.4027, allocations: 19.3 kB / 417.5 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006094/0.4033, allocations: 430 kB / 417.9 MB, free: 404 kB / 334.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4033, allocations: 0 / 417.9 MB, free: 404 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001084/0.4044, allocations: 159.1 kB / 418.1 MB, free: 384 kB / 334.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.0001714/0.4046, allocations: 110.7 kB / 418.2 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.4057, allocations: 0.6558 MB / 418.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4058, allocations: 0 / 418.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004747/0.4062, allocations: 365.5 kB / 419.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005788/0.4068, allocations: 73.3 kB / 419.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.4101, allocations: 1.857 MB / 421.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006742/0.4108, allocations: 1.033 MB / 422.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.411, allocations: 69.19 kB / 422.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.411, allocations: 0 / 422.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of Templates: time 0.02711/0.4381, allocations: 19.62 MB / 441.8 MB, free: 11.48 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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