Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_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.00712/0.00712, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001316/0.001316, allocations: 192.9 kB / 16.67 MB, free: 5.52 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.826/1.826, allocations: 205.1 MB / 222.5 MB, free: 12.25 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.00178/0.00178, allocations: 59.91 kB / 326.6 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1662, allocations: 46.61 MB / 373.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.3918/0.558, allocations: 5.94 MB / 379.1 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006445/0.5646, allocations: 1.694 MB / 380.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002411/0.567, allocations: 29.88 kB / 380.8 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.5684, allocations: 249.5 kB / 381.1 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001663/0.5701, allocations: 223.8 kB / 381.3 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002509/0.5726, allocations: 0.4933 MB / 381.8 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00363/0.5763, allocations: 1.401 MB / 383.2 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00125/0.5776, allocations: 0.6252 MB / 383.8 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.5788, allocations: 480.9 kB / 384.3 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007884/0.5796, allocations: 0.4908 MB / 384.8 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002552/0.5798, allocations: 122.2 kB / 384.9 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003838/0.5802, allocations: 135 kB / 385 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002735/0.5805, allocations: 275.2 kB / 385.3 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007134/0.5812, allocations: 0.6049 MB / 385.9 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00292/0.5842, allocations: 1.618 MB / 387.5 MB, free: 6.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.365e-06/0.5842, allocations: 5.5 kB / 387.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.5842, allocations: 3.938 kB / 387.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.54e-05/0.5843, allocations: 1.156 kB / 387.5 MB, free: 6.383 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.003101/0.5874, allocations: 1.455 MB / 389 MB, free: 5.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.547e-05/0.5875, allocations: 9.469 kB / 389 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003285/0.5878, allocations: 144.1 kB / 389.1 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001466/0.5893, allocations: 0.7524 MB / 389.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.951e-05/0.5894, allocations: 90.5 kB / 390 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001872/0.5896, allocations: 122.5 kB / 390.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002357/0.5919, allocations: 1.265 MB / 391.4 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.211e-05/0.592, allocations: 6.594 kB / 391.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.5921, allocations: 54 kB / 391.4 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-05/0.5922, allocations: 36.53 kB / 391.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.5936, allocations: 0.6909 MB / 392.2 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007964/0.6016, allocations: 6.777 MB / 398.9 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009624/0.6026, allocations: 265.4 kB / 399.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004797/0.6031, allocations: 188.7 kB / 399.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001967/0.6033, allocations: 87.02 kB / 399.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.381e-05/0.6034, allocations: 37.94 kB / 399.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 3.036e-06/0.6034, allocations: 0 / 399.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.003182/0.6066, allocations: 1.398 MB / 400.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.835e-05/0.6067, allocations: 84.58 kB / 401 MB, free: 12.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.6077, allocations: 0.6578 MB / 401.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/0.6078, allocations: 35.61 kB / 401.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004931/0.6083, allocations: 0.6739 MB / 402.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.944e-05/0.6084, allocations: 120.5 kB / 402.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.6086, allocations: 148.9 kB / 402.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.6088, allocations: 387.8 kB / 403 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003085/0.6091, allocations: 142.9 kB / 403.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006772/0.6098, allocations: 0.5486 MB / 403.7 MB, free: 10.46 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.001286/0.6111, allocations: 0.9569 MB / 404.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.6111, allocations: 4.125 kB / 404.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001579/0.6127, allocations: 0.7925 MB / 405.4 MB, free: 9.164 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.557e-05/0.6127, allocations: 12.42 kB / 405.4 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.251e-05/0.6128, allocations: 14.38 kB / 405.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003077/0.6131, allocations: 79.27 kB / 405.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006194/0.6137, allocations: 189.5 kB / 405.7 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002826/0.6166, allocations: 3.325 MB / 409 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006449/0.6172, allocations: 29.69 kB / 409.1 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.603e-05/0.6173, allocations: 40.06 kB / 409.1 MB, free: 5.773 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.0006545/0.618, allocations: 278 kB / 409.4 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.6181, allocations: 73.06 kB / 409.5 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001241/0.6182, allocations: 80.53 kB / 409.5 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.6183, allocations: 3.312 kB / 409.5 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-05/0.6183, allocations: 1.094 kB / 409.5 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.6183, allocations: 5.062 kB / 409.5 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.6205, allocations: 1.248 MB / 410.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.6205, allocations: 1.281 kB / 410.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003204/0.6208, allocations: 69.27 kB / 410.9 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/0.621, allocations: 52.09 kB / 410.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.693e-05/0.621, allocations: 6.438 kB / 410.9 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002415/0.6235, allocations: 3.056 MB / 414 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.6235, allocations: 5.219 kB / 414 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.6246, allocations: 0.6392 MB / 414.6 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003136/0.6249, allocations: 142.7 kB / 414.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.443e-05/0.625, allocations: 8.031 kB / 414.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.6253, allocations: 16.95 kB / 414.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.6254, allocations: 25.72 kB / 414.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.6255, allocations: 7.844 kB / 414.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008219/0.6263, allocations: 446.8 kB / 415.2 MB, free: 432 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6263, allocations: 0 / 415.2 MB, free: 432 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001673/0.628, allocations: 154.4 kB / 415.4 MB, free: 416 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.0002298/0.6282, allocations: 111.1 kB / 415.5 MB, free: 316 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.63, allocations: 0.6557 MB / 416.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.63, allocations: 0 / 416.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006024/0.6306, allocations: 361.4 kB / 416.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007086/0.6313, allocations: 85.47 kB / 416.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006206/0.6375, allocations: 1.815 MB / 418.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001076/0.6387, allocations: 1.031 MB / 419.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004031/0.6391, allocations: 81.53 kB / 419.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.6393, allocations: 59.23 kB / 419.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of SimCode: time 1.943e-06/0.6393, allocations: 4 kB / 419.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of Templates: time 0.01814/0.6574, allocations: 5.58 MB / 425.2 MB, free: 9.551 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1)