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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 95.88 kB / 16.3 MB, free: 6.121 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.001438/0.001437, allocations: 181.8 kB / 17.2 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 223.2 MB / 241.1 MB, free: 14.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002981/0.0002985, allocations: 4 kB / 300.8 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1305, allocations: 50.41 MB / 351.2 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005773/0.1363, allocations: 4.926 MB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003496/0.1399, allocations: 1.621 MB / 357.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001061/0.141, allocations: 23.88 kB / 357.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003387/0.1413, allocations: 126.9 kB / 357.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008156/0.1422, allocations: 267.1 kB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.1433, allocations: 335.5 kB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001507/0.1448, allocations: 0.8933 MB / 359.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008238/0.1456, allocations: 453.9 kB / 359.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005594/0.1462, allocations: 354.4 kB / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004498/0.1467, allocations: 389.7 kB / 360.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.283e-05/0.1467, allocations: 52 kB / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.1469, allocations: 52 kB / 360.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.1471, allocations: 179.2 kB / 360.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002139/0.1473, allocations: 245 kB / 361.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001059/0.1483, allocations: 1.157 MB / 362.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1484, allocations: 0 / 362.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.1484, allocations: 0 / 362.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.813e-05/0.1484, allocations: 3.938 kB / 362.3 MB, free: 8.594 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.002135/0.1505, allocations: 1.244 MB / 363.5 MB, free: 7.297 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.1506, allocations: 12.03 kB / 363.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000208/0.1508, allocations: 177.6 kB / 363.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002146/0.151, allocations: 142.3 kB / 363.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.1521, allocations: 0.6969 MB / 364.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.097e-05/0.1522, allocations: 90.41 kB / 364.6 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.1523, allocations: 116 kB / 364.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001988/0.1543, allocations: 1.248 MB / 366 MB, free: 4.598 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/0.1544, allocations: 11.88 kB / 366 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.1545, allocations: 59.95 kB / 366 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-05/0.1545, allocations: 36 kB / 366.1 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.1559, allocations: 0.6735 MB / 366.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2564/0.4123, allocations: 6.825 MB / 373.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.4135, allocations: 271.1 kB / 373.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002255/0.4137, allocations: 88.22 kB / 373.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.257e-05/0.4138, allocations: 39.08 kB / 374 MB, free: 18.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.947e-06/0.4138, allocations: 0 / 374 MB, free: 18.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.003272/0.4171, allocations: 1.419 MB / 375.4 MB, free: 17.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.4171, allocations: 81.38 kB / 375.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.4182, allocations: 0.6508 MB / 376.1 MB, free: 17.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.4183, allocations: 31.02 kB / 376.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005468/0.4188, allocations: 0.6858 MB / 376.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.419, allocations: 112.2 kB / 376.9 MB, free: 16.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.419, allocations: 17.38 kB / 377 MB, free: 16.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.4192, allocations: 389.3 kB / 377.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/0.4195, allocations: 153.2 kB / 377.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004763/0.42, allocations: 0.5557 MB / 378 MB, free: 15.97 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.0005821/0.4206, allocations: 443.3 kB / 378.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.4206, allocations: 8.125 kB / 378.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001429/0.422, allocations: 0.7957 MB / 379.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.827e-05/0.4221, allocations: 11.44 kB / 379.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.15e-05/0.4221, allocations: 15 kB / 379.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000329/0.4224, allocations: 83.11 kB / 379.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006241/0.4231, allocations: 186.7 kB / 379.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00214/0.4252, allocations: 2.999 MB / 382.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005358/0.4258, allocations: 37.33 kB / 382.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.437e-05/0.4259, allocations: 45.5 kB / 382.6 MB, free: 12.61 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 (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.0005355/0.4264, allocations: 271.6 kB / 382.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.4266, allocations: 78.95 kB / 383 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.4267, allocations: 69.81 kB / 383.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.4267, allocations: 6.953 kB / 383.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.4267, allocations: 3.047 kB / 383.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.4267, allocations: 7.031 kB / 383.1 MB, free: 12.31 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002111/0.4288, allocations: 1.354 MB / 384.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.4289, allocations: 1.125 kB / 384.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003326/0.4292, allocations: 66.45 kB / 384.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001994/0.4294, allocations: 56.5 kB / 384.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.4294, allocations: 7.734 kB / 384.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001821/0.4313, allocations: 2.795 MB / 387.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.4313, allocations: 1.188 kB / 387.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.4324, allocations: 0.6738 MB / 388 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.4326, allocations: 139.5 kB / 388.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.668e-05/0.4326, allocations: 8.328 kB / 388.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.4329, allocations: 22.09 kB / 388.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.468e-05/0.433, allocations: 29.22 kB / 388.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/0.4331, allocations: 7.922 kB / 388.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006417/0.4337, allocations: 429.2 kB / 388.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4337, allocations: 0 / 388.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001267/0.435, allocations: 155.6 kB / 388.8 MB, free: 7.812 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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.001419/0.4364, allocations: 1.444 MB / 390.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.438, allocations: 0.6593 MB / 390.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.438, allocations: 9.062 kB / 390.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005612/0.4386, allocations: 368.3 kB / 391.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.4391, allocations: 68.17 kB / 391.3 MB, free: 5.926 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/0.454, allocations: 14.6 MB / 405.9 MB, free: 9.133 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.4552, allocations: 1.058 MB / 407 MB, free: 8.418 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004319/0.4556, allocations: 83.22 kB / 407.1 MB, free: 8.398 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005494/0.4562, allocations: 422.5 kB / 407.5 MB, free: 8.062 MB / 318.1 MB Notification: Performance of SimCode: time 1.793e-06/0.4562, allocations: 0 / 407.5 MB, free: 8.062 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0366/0.4928, allocations: 12.45 MB / 419.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002479/0.4931, allocations: 202.5 kB / 420.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/2.666, allocations: 6.891 kB / 420.1 MB, free: 15.57 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat