Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.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.TwoMassesEquationsFullInitial,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesEquationsFullInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesEquationsFullInitial",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.001375/0.001375, allocations: 108 kB / 15.61 MB, free: 152 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.001776/0.001776, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.433/1.433, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.00338/0.00338, allocations: 0.5624 MB / 291 MB, free: 1.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002961/0.002961, allocations: 63.91 kB / 351.7 MB, free: 2.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1095, allocations: 49.6 MB / 401.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial): time 0.00215/0.1117, allocations: 0.5132 MB / 401.8 MB, free: 76 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001654/0.1119, allocations: 23.91 kB / 401.8 MB, free: 52 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.95e-05/0.1119, allocations: 3.938 kB / 401.8 MB, free: 48 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.054e-05/0.112, allocations: 3.938 kB / 401.8 MB, free: 44 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.691e-05/0.112, allocations: 0 / 401.8 MB, free: 44 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001309/0.1122, allocations: 7.922 kB / 401.8 MB, free: 36 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.063e-05/0.1122, allocations: 23.98 kB / 401.8 MB, free: 12 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.498e-05/0.1123, allocations: 3.984 kB / 401.8 MB, free: 8 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1506/0.2629, allocations: 11.39 kB / 401.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.526e-05/0.263, allocations: 11.89 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.76e-05/0.2631, allocations: 1.125 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.688e-06/0.2631, allocations: 1.688 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.657e-05/0.2631, allocations: 2.562 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.942e-05/0.2631, allocations: 12.7 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.43e-05/0.2632, allocations: 10.12 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2632, allocations: 0 / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2632, allocations: 1.188 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2632, allocations: 3.75 kB / 401.9 MB, free: 10.34 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003231/0.2636, allocations: 337.3 kB / 402.2 MB, free: 9.992 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.2636, allocations: 13.69 kB / 402.2 MB, free: 9.988 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.76e-05/0.2636, allocations: 34.38 kB / 402.3 MB, free: 9.949 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.237e-05/0.2637, allocations: 2.75 kB / 402.3 MB, free: 9.949 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.439e-05/0.2637, allocations: 166.6 kB / 402.4 MB, free: 9.754 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.2638, allocations: 4.219 kB / 402.4 MB, free: 9.754 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.877e-05/0.2638, allocations: 6.844 kB / 402.4 MB, free: 9.754 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.264e-05/0.2639, allocations: 45.97 kB / 402.5 MB, free: 9.723 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.2639, allocations: 5.031 kB / 402.5 MB, free: 9.719 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.136e-06/0.2639, allocations: 0.75 kB / 402.5 MB, free: 9.719 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.2639, allocations: 4.688 kB / 402.5 MB, free: 9.719 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.366e-05/0.264, allocations: 13.83 kB / 402.5 MB, free: 9.719 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002042/0.2642, allocations: 251.8 kB / 402.8 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.229e-05/0.2643, allocations: 54.2 kB / 402.8 MB, free: 9.426 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.228e-05/0.2643, allocations: 18.56 kB / 402.8 MB, free: 9.418 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.2643, allocations: 3.141 kB / 402.8 MB, free: 9.418 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.2644, allocations: 33.88 kB / 402.9 MB, free: 9.379 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.2644, allocations: 5.609 kB / 402.9 MB, free: 9.379 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006005/0.265, allocations: 0.5 MB / 403.4 MB, free: 8.938 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.865e-05/0.265, allocations: 55.53 kB / 403.4 MB, free: 8.875 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.491e-05/0.265, allocations: 99.58 kB / 403.5 MB, free: 8.777 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.436e-06/0.2651, allocations: 28.27 kB / 403.5 MB, free: 8.746 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.831e-05/0.2651, allocations: 83.89 kB / 403.6 MB, free: 8.664 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.2651, allocations: 29.83 kB / 403.7 MB, free: 8.645 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.563e-05/0.2652, allocations: 24.84 kB / 403.7 MB, free: 8.629 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.956e-05/0.2652, allocations: 321.9 kB / 404 MB, free: 8.312 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.206e-05/0.2652, allocations: 15.2 kB / 404 MB, free: 8.312 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.805e-05/0.2653, allocations: 28.33 kB / 404 MB, free: 8.297 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.2655, allocations: 253.1 kB / 404.3 MB, free: 8.09 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.2656, allocations: 0 / 404.3 MB, free: 8.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001504/0.2657, allocations: 98.2 kB / 404.4 MB, free: 8.047 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.2657, allocations: 5.156 kB / 404.4 MB, free: 8.047 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.2657, allocations: 1.031 kB / 404.4 MB, free: 8.047 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001143/0.2659, allocations: 30.41 kB / 404.4 MB, free: 8.031 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.278e-05/0.2659, allocations: 11.17 kB / 404.4 MB, free: 8.031 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007007/0.2666, allocations: 1.386 MB / 405.8 MB, free: 6.672 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.304e-05/0.2667, allocations: 3.875 kB / 405.8 MB, free: 6.672 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.2667, allocations: 7.75 kB / 405.8 MB, free: 6.668 MB / 286.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: x1 = 0.0 v1 = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (8): * Single equations (assignments): 7 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.2668, allocations: 119 kB / 405.9 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.2669, allocations: 2.766 kB / 405.9 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.952e-05/0.2669, allocations: 12.11 kB / 406 MB, free: 6.535 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2669, allocations: 5.438 kB / 406 MB, free: 6.531 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2669, allocations: 0.5 kB / 406 MB, free: 6.531 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2669, allocations: 2.406 kB / 406 MB, free: 6.531 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003474/0.2673, allocations: 367.7 kB / 406.3 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2673, allocations: 1.828 kB / 406.3 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.143e-05/0.2674, allocations: 13.64 kB / 406.3 MB, free: 6.184 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.208e-05/0.2674, allocations: 23.56 kB / 406.4 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.2674, allocations: 1.406 kB / 406.4 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006414/0.2681, allocations: 1.388 MB / 407.8 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2681, allocations: 1.672 kB / 407.8 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000212/0.2683, allocations: 226.2 kB / 408 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.284e-05/0.2684, allocations: 87.86 kB / 408.1 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.2684, allocations: 6.734 kB / 408.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.82e-05/0.2684, allocations: 4.969 kB / 408.1 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.442e-05/0.2685, allocations: 17.53 kB / 408.1 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.2685, allocations: 2.656 kB / 408.1 MB, free: 4.543 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.353e-05/0.2685, allocations: 80 kB / 408.2 MB, free: 4.469 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2685, allocations: 0 / 408.2 MB, free: 4.469 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002482/0.2688, allocations: 11.66 kB / 408.2 MB, free: 4.469 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (x2,v2) * 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 (6): * Single equations (assignments): 5 * 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,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.0003678/0.2691, allocations: 0.7554 MB / 408.9 MB, free: 3.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002841/0.2694, allocations: 169.7 kB / 409.1 MB, free: 3.648 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2695, allocations: 3.938 kB / 409.1 MB, free: 3.648 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.2696, allocations: 149.1 kB / 409.3 MB, free: 3.531 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002295/0.2699, allocations: 5.984 kB / 409.3 MB, free: 3.531 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.2709, allocations: 1.395 MB / 410.7 MB, free: 2.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001156/0.271, allocations: 0.6882 MB / 411.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.869e-05/0.271, allocations: 3.578 kB / 411.3 MB, free: 1.551 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.224e-05/0.2711, allocations: 19.34 kB / 411.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2711, allocations: 3.938 kB / 411.4 MB, free: 1.535 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.3058, allocations: 1.721 MB / 413.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.615/9.921, allocations: 8.734 kB / 413.1 MB, free: 1.191 MB / 286.1 MB (rm -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.pipe ; mkfifo ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.pipe ; head -c 1048576 < ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.pipe >> ../files/ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.sim & python3 -m fmpy simulate --output-file ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesEquationsFullInitial.fmu > ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.pipe 2>&1)