Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedInitial.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTestOverdetermined with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0+maint.om/package.mo) 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(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedInitial,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesReducedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedInitial,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesReducedInitial",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.001109/0.001109, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0+maint.om/package.mo): time 0.002742/0.002743, allocations: 0.5659 MB / 291 MB, free: 1.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 59.91 kB / 351.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09667/0.09794, allocations: 49.59 MB / 401.2 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedInitial): time 0.1572/0.2551, allocations: 1.648 MB / 402.9 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002354/0.2554, allocations: 90.27 kB / 403 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.241e-05/0.2555, allocations: 1.719 kB / 403 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.891e-05/0.2556, allocations: 17.42 kB / 403 MB, free: 10 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.354e-05/0.2557, allocations: 31.83 kB / 403 MB, free: 9.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001088/0.2558, allocations: 18.62 kB / 403.1 MB, free: 9.984 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00011/0.2559, allocations: 113.4 kB / 403.2 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.256, allocations: 33.59 kB / 403.2 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.176e-05/0.2561, allocations: 34.34 kB / 403.2 MB, free: 9.945 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.422e-05/0.2562, allocations: 50.28 kB / 403.3 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.287e-05/0.2562, allocations: 8.812 kB / 403.3 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.366e-05/0.2563, allocations: 9.125 kB / 403.3 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.346e-05/0.2563, allocations: 18.36 kB / 403.3 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.125e-05/0.2563, allocations: 51.38 kB / 403.4 MB, free: 9.883 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.2565, allocations: 109.4 kB / 403.5 MB, free: 9.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2565, allocations: 0.5625 kB / 403.5 MB, free: 9.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2565, allocations: 0 / 403.5 MB, free: 9.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.2565, allocations: 0.75 kB / 403.5 MB, free: 9.844 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.000414/0.2569, allocations: 396 kB / 403.9 MB, free: 9.453 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.257, allocations: 12.42 kB / 403.9 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.686e-05/0.257, allocations: 48.3 kB / 403.9 MB, free: 9.402 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.2571, allocations: 14.03 kB / 403.9 MB, free: 9.395 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.2572, allocations: 181.6 kB / 404.1 MB, free: 9.191 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.2572, allocations: 7.625 kB / 404.1 MB, free: 9.188 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.2572, allocations: 12.62 kB / 404.1 MB, free: 9.184 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.2574, allocations: 97.81 kB / 404.2 MB, free: 9.121 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.2574, allocations: 4.75 kB / 404.2 MB, free: 9.117 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.2575, allocations: 5.859 kB / 404.2 MB, free: 9.113 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.2575, allocations: 2.562 kB / 404.2 MB, free: 9.113 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.2576, allocations: 56.8 kB / 404.3 MB, free: 9.098 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004564/0.2581, allocations: 394 kB / 404.7 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.2582, allocations: 101.9 kB / 404.8 MB, free: 8.707 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.349e-05/0.2583, allocations: 38.58 kB / 404.8 MB, free: 8.688 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.49e-05/0.2583, allocations: 1.281 kB / 404.8 MB, free: 8.688 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.2584, allocations: 32.64 kB / 404.8 MB, free: 8.648 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.2584, allocations: 0 / 404.8 MB, free: 8.648 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.001/0.2594, allocations: 0.6912 MB / 405.5 MB, free: 8.062 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.057e-05/0.2594, allocations: 53.75 kB / 405.6 MB, free: 8 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.332e-05/0.2595, allocations: 124.6 kB / 405.7 MB, free: 7.891 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.2595, allocations: 26.83 kB / 405.7 MB, free: 7.859 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.301e-05/0.2596, allocations: 102.3 kB / 405.8 MB, free: 7.762 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.2596, allocations: 50.52 kB / 405.9 MB, free: 7.723 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.755e-05/0.2596, allocations: 38.61 kB / 405.9 MB, free: 7.691 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.943e-05/0.2597, allocations: 320.5 kB / 406.2 MB, free: 7.375 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.933e-05/0.2598, allocations: 37.03 kB / 406.3 MB, free: 7.359 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.687e-05/0.2598, allocations: 60.66 kB / 406.3 MB, free: 7.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.26, allocations: 107 kB / 406.4 MB, free: 7.254 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.26, allocations: 6.094 kB / 406.4 MB, free: 7.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002573/0.2603, allocations: 160 kB / 406.6 MB, free: 7.164 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2603, allocations: 9.625 kB / 406.6 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2603, allocations: 0 / 406.6 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000147/0.2604, allocations: 31.75 kB / 406.6 MB, free: 7.145 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.2606, allocations: 28.67 kB / 406.7 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008461/0.2614, allocations: 1.618 MB / 408.3 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.831e-05/0.2615, allocations: 4.312 kB / 408.3 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.2615, allocations: 5.266 kB / 408.3 MB, free: 5.527 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 6.996e-05/0.2616, allocations: 135.9 kB / 408.4 MB, free: 5.391 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.275e-05/0.2616, allocations: 9.031 kB / 408.4 MB, free: 5.387 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.186e-05/0.2616, allocations: 16.25 kB / 408.5 MB, free: 5.371 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2617, allocations: 7.891 kB / 408.5 MB, free: 5.367 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2617, allocations: 1.703 kB / 408.5 MB, free: 5.367 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2617, allocations: 4.719 kB / 408.5 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000536/0.2622, allocations: 0.5381 MB / 409 MB, free: 4.887 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2622, allocations: 1.312 kB / 409 MB, free: 4.887 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.2624, allocations: 28.77 kB / 409 MB, free: 4.883 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.35e-05/0.2624, allocations: 29.11 kB / 409.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.2624, allocations: 5.781 kB / 409.1 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005575/0.263, allocations: 1.36 MB / 410.4 MB, free: 3.461 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.263, allocations: 4.938 kB / 410.4 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000297/0.2633, allocations: 303 kB / 410.7 MB, free: 3.23 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.334e-05/0.2634, allocations: 84.16 kB / 410.8 MB, free: 3.133 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.2634, allocations: 2.781 kB / 410.8 MB, free: 3.133 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.02e-05/0.2635, allocations: 6.25 kB / 410.8 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.966e-05/0.2635, allocations: 18.75 kB / 410.8 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.2635, allocations: 11.53 kB / 410.9 MB, free: 3.113 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.257e-05/0.2636, allocations: 94.78 kB / 410.9 MB, free: 3.035 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2636, allocations: 0 / 410.9 MB, free: 3.035 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003076/0.2639, allocations: 30.53 kB / 411 MB, free: 3.031 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (mass1.s,mass1.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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004511/0.2643, allocations: 0.8374 MB / 411.8 MB, free: 2.266 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003433/0.2647, allocations: 231.1 kB / 412 MB, free: 2.105 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2647, allocations: 0 / 412 MB, free: 2.105 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.2649, allocations: 175.2 kB / 412.2 MB, free: 1.973 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.2652, allocations: 19.88 kB / 412.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.2668, allocations: 1.841 MB / 414.1 MB, free: 396 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.267, allocations: 0.7045 MB / 414.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.134e-05/0.267, allocations: 12.94 kB / 414.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.635e-05/0.2671, allocations: 29.98 kB / 414.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2671, allocations: 0 / 414.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.2971, allocations: 2.919 MB / 417.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.969/9.266, allocations: 13.77 kB / 417.7 MB, free: 15.22 MB / 302.1 MB (rm -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedInitial.pipe ; mkfifo ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedInitial.pipe ; head -c 1048576 < ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedInitial.pipe >> ../files/ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedInitial.sim & python3 -m fmpy simulate --output-file ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedInitial_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesReducedInitial.fmu > ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedInitial.pipe 2>&1)