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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_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.001061/0.001062, allocations: 93.94 kB / 16.93 MB, free: 5.984 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.0009278/0.0009279, allocations: 180.7 kB / 17.82 MB, free: 5.652 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.339/1.339, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004319/0.000432, allocations: 8 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.09079, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005833/0.09667, allocations: 4.905 MB / 333.3 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002399/0.09909, allocations: 1.653 MB / 335 MB, free: 13.42 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003238/0.09943, allocations: 27.88 kB / 335 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.09961, allocations: 126.9 kB / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004908/0.1001, allocations: 263.1 kB / 335.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006681/0.1008, allocations: 327.6 kB / 335.7 MB, free: 12.69 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.1018, allocations: 0.8933 MB / 336.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006109/0.1024, allocations: 461.9 kB / 337 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003567/0.1028, allocations: 350.4 kB / 337.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004005/0.1032, allocations: 397.7 kB / 337.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.175e-05/0.1033, allocations: 48 kB / 337.8 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.1034, allocations: 56 kB / 337.9 MB, free: 10.49 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.1036, allocations: 175.2 kB / 338.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.1038, allocations: 241 kB / 338.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009652/0.1048, allocations: 1.153 MB / 339.4 MB, free: 8.918 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1048, allocations: 0 / 339.4 MB, free: 8.918 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1048, allocations: 0 / 339.4 MB, free: 8.918 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.1048, allocations: 7.938 kB / 339.4 MB, free: 8.91 MB / 286.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.001759/0.1066, allocations: 1.244 MB / 340.7 MB, free: 7.613 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.1066, allocations: 8.031 kB / 340.7 MB, free: 7.605 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001872/0.1068, allocations: 177.7 kB / 340.9 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.107, allocations: 138.3 kB / 341 MB, free: 7.285 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009483/0.1079, allocations: 0.6931 MB / 341.7 MB, free: 6.551 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.843e-05/0.108, allocations: 94.3 kB / 341.8 MB, free: 6.457 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.1082, allocations: 127.9 kB / 341.9 MB, free: 6.332 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.11, allocations: 1.248 MB / 343.2 MB, free: 4.914 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.281e-05/0.11, allocations: 11.92 kB / 343.2 MB, free: 4.902 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.641e-05/0.1101, allocations: 55.94 kB / 343.2 MB, free: 4.848 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.662e-05/0.1102, allocations: 32 kB / 343.3 MB, free: 4.816 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.1114, allocations: 0.6813 MB / 343.9 MB, free: 4.133 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005549/0.1169, allocations: 6.836 MB / 350.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005985/0.1175, allocations: 269.3 kB / 351 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001512/0.1177, allocations: 89.09 kB / 351.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.1177, allocations: 35.06 kB / 351.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.393e-06/0.1177, allocations: 0 / 351.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002208/0.12, allocations: 1.425 MB / 352.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.12, allocations: 81.11 kB / 352.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006586/0.1207, allocations: 0.6491 MB / 353.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.1207, allocations: 29.7 kB / 353.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004478/0.1212, allocations: 0.6798 MB / 354 MB, free: 9.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.531e-05/0.1213, allocations: 118.4 kB / 354.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.446e-05/0.1213, allocations: 16 kB / 354.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.1215, allocations: 386.8 kB / 354.5 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/0.1218, allocations: 149.9 kB / 354.7 MB, free: 8.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005512/0.1223, allocations: 0.5468 MB / 355.2 MB, free: 8.105 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.0005993/0.1229, allocations: 445.9 kB / 355.7 MB, free: 7.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.123, allocations: 4 kB / 355.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001191/0.1241, allocations: 0.7982 MB / 356.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.1242, allocations: 16.16 kB / 356.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.1242, allocations: 12 kB / 356.5 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002363/0.1245, allocations: 85.62 kB / 356.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/0.125, allocations: 187.7 kB / 356.8 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/0.1273, allocations: 2.998 MB / 359.8 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003406/0.1276, allocations: 32 kB / 359.8 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.146e-05/0.1277, allocations: 43.98 kB / 359.8 MB, free: 3.176 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.0003585/0.1281, allocations: 273.5 kB / 360.1 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.617e-05/0.1282, allocations: 71.06 kB / 360.2 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.1283, allocations: 78.41 kB / 360.2 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.1283, allocations: 4 kB / 360.3 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.1283, allocations: 7.891 kB / 360.3 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1283, allocations: 3.984 kB / 360.3 MB, free: 2.73 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.001722/0.13, allocations: 1.352 MB / 361.6 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1301, allocations: 0 / 361.6 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003162/0.1304, allocations: 72.02 kB / 361.7 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001367/0.1305, allocations: 53.62 kB / 361.7 MB, free: 1.156 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.1306, allocations: 8 kB / 361.7 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001925/0.1325, allocations: 2.799 MB / 364.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.1325, allocations: 3.984 kB / 364.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008266/0.1333, allocations: 0.6745 MB / 365.2 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.1335, allocations: 148.1 kB / 365.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.694e-05/0.1335, allocations: 4.062 kB / 365.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.1338, allocations: 16 kB / 365.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.061e-05/0.1338, allocations: 27.95 kB / 365.4 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.1339, allocations: 12 kB / 365.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000482/0.1344, allocations: 427 kB / 365.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.382e-06/0.1344, allocations: 4 kB / 365.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007829/0.1352, allocations: 163.9 kB / 366 MB, free: 12.56 MB / 318.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.001206/0.1364, allocations: 1.434 MB / 367.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009634/0.1373, allocations: 0.6603 MB / 368.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1374, allocations: 0 / 368.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004865/0.1379, allocations: 369.2 kB / 368.5 MB, free: 10 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003575/0.1382, allocations: 75.73 kB / 368.5 MB, free: 9.934 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1611/0.2993, allocations: 14.62 MB / 383.2 MB, free: 48.22 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007506/0.3001, allocations: 1.057 MB / 384.2 MB, free: 47.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003226/0.3005, allocations: 81.28 kB / 384.3 MB, free: 47.51 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005448/0.301, allocations: 421.5 kB / 384.7 MB, free: 47.5 MB / 318.1 MB Notification: Performance of SimCode: time 8.61e-07/0.301, allocations: 0 / 384.7 MB, free: 47.5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03199/0.333, allocations: 12.44 MB / 397.1 MB, free: 43.44 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.3333, allocations: 218.3 kB / 397.4 MB, free: 43.19 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/2.447, allocations: 0 / 397.4 MB, free: 43.19 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat