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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008708/0.0008708, allocations: 98.5 kB / 17 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008808/0.000881, allocations: 194.2 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.3 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002441/0.0002441, allocations: 8 kB / 306.8 MB, free: 1.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1108, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005858/0.1167, allocations: 5.173 MB / 363.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003645/0.1204, allocations: 1.609 MB / 365.1 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008854/0.1213, allocations: 31.81 kB / 365.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004702/0.1218, allocations: 178.5 kB / 365.3 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004728/0.1222, allocations: 170.4 kB / 365.5 MB, free: 6.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.1233, allocations: 331.6 kB / 365.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001461/0.1247, allocations: 1.223 MB / 367 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007221/0.1255, allocations: 465.9 kB / 367.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006626/0.1261, allocations: 358.3 kB / 367.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004338/0.1266, allocations: 397.7 kB / 368.2 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.056e-05/0.1267, allocations: 48 kB / 368.2 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.1269, allocations: 68 kB / 368.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.127, allocations: 171.2 kB / 368.5 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002115/0.1272, allocations: 245 kB / 368.7 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.1284, allocations: 1.161 MB / 369.9 MB, free: 2.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1284, allocations: 4 kB / 369.9 MB, free: 2.102 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1284, allocations: 0 / 369.9 MB, free: 2.102 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.1285, allocations: 3.938 kB / 369.9 MB, free: 2.098 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.001899/0.1304, allocations: 1.247 MB / 371.1 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.1304, allocations: 8.031 kB / 371.1 MB, free: 0.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000199/0.1306, allocations: 177.7 kB / 371.3 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003704/0.131, allocations: 166.3 kB / 371.5 MB, free: 456 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2168/0.3478, allocations: 0.6894 MB / 372.2 MB, free: 18.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.348, allocations: 93.38 kB / 372.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002146/0.3482, allocations: 117.9 kB / 372.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002495/0.3507, allocations: 1.258 MB / 373.6 MB, free: 18.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.27e-05/0.3508, allocations: 6.938 kB / 373.6 MB, free: 18.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001254/0.3509, allocations: 58.02 kB / 373.7 MB, free: 18.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.694e-05/0.351, allocations: 32.77 kB / 373.7 MB, free: 18.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001595/0.3526, allocations: 0.6904 MB / 374.4 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00587/0.3584, allocations: 6.818 MB / 381.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006847/0.3592, allocations: 278.4 kB / 381.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003636/0.3595, allocations: 180.4 kB / 381.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.3597, allocations: 86.42 kB / 381.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.3597, allocations: 41.8 kB / 381.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.605e-06/0.3598, allocations: 0 / 381.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002476/0.3622, allocations: 1.41 MB / 383.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.3623, allocations: 82.16 kB / 383.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008277/0.3631, allocations: 0.6554 MB / 384 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.3632, allocations: 31.39 kB / 384 MB, free: 10.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003902/0.3636, allocations: 0.6783 MB / 384.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.455e-05/0.3636, allocations: 119.6 kB / 384.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.3637, allocations: 15.06 kB / 384.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3638, allocations: 388 kB / 385.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003007/0.3641, allocations: 144.6 kB / 385.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000485/0.3646, allocations: 0.5585 MB / 385.9 MB, free: 9.016 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.0006475/0.3653, allocations: 452.4 kB / 386.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.3653, allocations: 4.406 kB / 386.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001327/0.3666, allocations: 0.7876 MB / 387.1 MB, free: 8.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.394e-05/0.3667, allocations: 19.39 kB / 387.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.3667, allocations: 17.62 kB / 387.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002717/0.367, allocations: 81.14 kB / 387.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.3676, allocations: 182.8 kB / 387.4 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002173/0.3697, allocations: 2.977 MB / 390.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005419/0.3703, allocations: 37.78 kB / 390.4 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-05/0.3704, allocations: 44.12 kB / 390.5 MB, free: 5.355 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.0004635/0.3709, allocations: 277.3 kB / 390.7 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.371, allocations: 73.94 kB / 390.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.3711, allocations: 71.25 kB / 390.9 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.3711, allocations: 3.562 kB / 390.9 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.3711, allocations: 2.578 kB / 390.9 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.3711, allocations: 1.453 kB / 390.9 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.3731, allocations: 1.267 MB / 392.1 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3732, allocations: 2 kB / 392.2 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003285/0.3735, allocations: 66.77 kB / 392.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/0.3737, allocations: 56.28 kB / 392.3 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.693e-05/0.3737, allocations: 8.125 kB / 392.3 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001639/0.3754, allocations: 2.786 MB / 395.1 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3754, allocations: 1.406 kB / 395.1 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009165/0.3763, allocations: 0.6379 MB / 395.7 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.3765, allocations: 139.7 kB / 395.8 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.257e-05/0.3765, allocations: 8.141 kB / 395.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/0.3768, allocations: 19.55 kB / 395.9 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.504e-05/0.3769, allocations: 29.97 kB / 395.9 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.301e-05/0.3769, allocations: 12.38 kB / 395.9 MB, free: 0.918 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006528/0.3776, allocations: 430.7 kB / 396.3 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3776, allocations: 0 / 396.3 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001264/0.3788, allocations: 159.7 kB / 396.5 MB, free: 0.707 MB / 302.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 (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.001461/0.3803, allocations: 1.188 MB / 397.7 MB, free: 15.76 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.3819, allocations: 0.6552 MB / 398.3 MB, free: 15.39 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.3819, allocations: 2.297 kB / 398.3 MB, free: 15.39 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005839/0.3825, allocations: 370.2 kB / 398.7 MB, free: 15.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006207/0.3832, allocations: 76.02 kB / 398.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.3937, allocations: 5.008 MB / 403.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.3949, allocations: 1.033 MB / 404.8 MB, free: 11.05 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004516/0.3954, allocations: 87.27 kB / 404.9 MB, free: 11 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005755/0.396, allocations: 422 kB / 405.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of SimCode: time 1.633e-06/0.396, allocations: 0 / 405.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03873/0.4347, allocations: 12.47 MB / 417.8 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002862/0.4351, allocations: 207.4 kB / 418 MB, free: 316 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.308/2.743, allocations: 0 / 418 MB, free: 316 kB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat