Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTestOverdetermined_ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent.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.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_InconsistentInitialization_Mechanical_TwoMassesEquationsFullInitialInconsistent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_InconsistentInitialization_Mechanical_TwoMassesEquationsFullInitialInconsistent",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.00141/0.00141, 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.001376/0.001377, allocations: 194.4 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.65/1.65, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.002997/0.002997, allocations: 0.5659 MB / 291 MB, free: 1.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 59.91 kB / 351.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1158, allocations: 49.6 MB / 401.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent): time 0.001842/0.1177, allocations: 0.5289 MB / 401.8 MB, free: 84 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001605/0.1179, allocations: 27.89 kB / 401.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.388e-05/0.1179, allocations: 0 / 401.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.203e-05/0.118, allocations: 0 / 401.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.745e-05/0.118, allocations: 7.938 kB / 401.8 MB, free: 48 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001212/0.1181, allocations: 4 kB / 401.8 MB, free: 44 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.563e-05/0.1182, allocations: 15.98 kB / 401.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.105e-05/0.1183, allocations: 4 kB / 401.8 MB, free: 24 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.086e-05/0.1183, allocations: 11.92 kB / 401.9 MB, free: 12 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.437e-05/0.1184, allocations: 11.92 kB / 401.9 MB, free: 0 / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.032e-05/0.313, allocations: 5.172 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.381e-05/0.313, allocations: 1.812 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.808e-05/0.3131, allocations: 5.75 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.632e-05/0.3131, allocations: 9.438 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.331e-05/0.3132, allocations: 12.09 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.3132, allocations: 0.5156 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3132, allocations: 0 / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.3132, allocations: 1.344 kB / 401.9 MB, free: 10.35 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.0003866/0.3136, allocations: 335 kB / 402.2 MB, free: 10 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.3137, allocations: 16.55 kB / 402.2 MB, free: 9.996 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.847e-05/0.3137, allocations: 39.2 kB / 402.3 MB, free: 9.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.853e-05/0.3137, allocations: 2.938 kB / 402.3 MB, free: 9.957 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.868e-05/0.3138, allocations: 167.3 kB / 402.4 MB, free: 9.762 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.3138, allocations: 4.875 kB / 402.5 MB, free: 9.762 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.894e-05/0.3139, allocations: 7.203 kB / 402.5 MB, free: 9.762 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.314, allocations: 47.3 kB / 402.5 MB, free: 9.73 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.314, allocations: 5.406 kB / 402.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.517e-06/0.314, allocations: 0 / 402.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.314, allocations: 1.562 kB / 402.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.002e-05/0.3141, allocations: 12.66 kB / 402.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002743/0.3144, allocations: 251.8 kB / 402.8 MB, free: 9.461 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000111/0.3145, allocations: 53.97 kB / 402.8 MB, free: 9.434 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.677e-05/0.3145, allocations: 23.39 kB / 402.8 MB, free: 9.426 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.3146, allocations: 0 / 402.8 MB, free: 9.426 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.3146, allocations: 36.67 kB / 402.9 MB, free: 9.387 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.683e-06/0.3146, allocations: 3.891 kB / 402.9 MB, free: 9.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006913/0.3153, allocations: 0.4994 MB / 403.4 MB, free: 8.941 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.3153, allocations: 56.59 kB / 403.4 MB, free: 8.879 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.563e-05/0.3154, allocations: 99.25 kB / 403.5 MB, free: 8.781 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.007e-06/0.3154, allocations: 26.33 kB / 403.6 MB, free: 8.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.228e-05/0.3154, allocations: 85.33 kB / 403.6 MB, free: 8.668 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.3155, allocations: 27.3 kB / 403.7 MB, free: 8.652 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.982e-05/0.3155, allocations: 28.86 kB / 403.7 MB, free: 8.633 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.195e-05/0.3156, allocations: 325.3 kB / 404 MB, free: 8.312 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.481e-05/0.3156, allocations: 14.34 kB / 404 MB, free: 8.312 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.676e-05/0.3157, allocations: 29.14 kB / 404.1 MB, free: 8.297 MB / 286.1 MB Error: The initialization problem is inconsistent due to the following equation: x1 = 0.0 (1.0 = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004179/0.3161, allocations: 248.1 kB / 404.3 MB, free: 8.094 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.3161, allocations: 0 / 404.3 MB, free: 8.094 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000164/0.3163, allocations: 103.2 kB / 404.4 MB, free: 8.043 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.3163, allocations: 5.469 kB / 404.4 MB, free: 8.043 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.3163, allocations: 1.312 kB / 404.4 MB, free: 8.043 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001285/0.3165, allocations: 29.02 kB / 404.4 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.293e-05/0.3165, allocations: 15.22 kB / 404.5 MB, free: 8.023 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008489/0.3174, allocations: 1.384 MB / 405.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.169e-05/0.3174, allocations: 3.938 kB / 405.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.613e-06/0.3174, allocations: 2.25 kB / 405.8 MB, free: 6.66 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 9.65e-05/0.3175, allocations: 121.2 kB / 406 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.785e-05/0.3176, allocations: 3.328 kB / 406 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.519e-05/0.3176, allocations: 8.547 kB / 406 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3176, allocations: 0.6562 kB / 406 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3176, allocations: 0.7812 kB / 406 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3176, allocations: 1.906 kB / 406 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003936/0.318, allocations: 378.8 kB / 406.3 MB, free: 6.184 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3181, allocations: 1.125 kB / 406.3 MB, free: 6.184 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.741e-05/0.3181, allocations: 12.33 kB / 406.4 MB, free: 6.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.577e-05/0.3182, allocations: 25.27 kB / 406.4 MB, free: 6.168 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.3182, allocations: 5.766 kB / 406.4 MB, free: 6.168 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007804/0.319, allocations: 1.381 MB / 407.8 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.319, allocations: 1.438 kB / 407.8 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002325/0.3193, allocations: 227.4 kB / 408 MB, free: 4.645 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.435e-05/0.3193, allocations: 83.91 kB / 408.1 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.3193, allocations: 9.625 kB / 408.1 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.638e-05/0.3194, allocations: 4.688 kB / 408.1 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.334e-05/0.3194, allocations: 11.22 kB / 408.1 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.3194, allocations: 3 kB / 408.1 MB, free: 4.539 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.602e-05/0.3195, allocations: 86.53 kB / 408.2 MB, free: 4.461 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3195, allocations: 0 / 408.2 MB, free: 4.461 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002431/0.3197, allocations: 11.03 kB / 408.2 MB, free: 4.461 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.0005328/0.3202, allocations: 0.7541 MB / 409 MB, free: 3.766 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004298/0.3207, allocations: 164.4 kB / 409.1 MB, free: 3.652 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/0.3207, allocations: 1.125 kB / 409.1 MB, free: 3.652 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.3209, allocations: 151.8 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.0002449/0.3212, allocations: 3.344 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.001495/0.3227, allocations: 1.398 MB / 410.7 MB, free: 2.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/0.323, allocations: 0.6851 MB / 411.4 MB, free: 1.555 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.265e-05/0.323, allocations: 3.406 kB / 411.4 MB, free: 1.555 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.906e-05/0.3231, allocations: 14.22 kB / 411.4 MB, free: 1.547 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3231, allocations: 0 / 411.4 MB, free: 1.547 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03418/0.3573, allocations: 1.754 MB / 413.1 MB, free: 1.16 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.579/9.936, allocations: 11.56 kB / 413.1 MB, free: 1.152 MB / 286.1 MB (rm -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent.pipe ; mkfifo ModelicaTestOverdetermined_ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent.pipe ; head -c 1048576 < ModelicaTestOverdetermined_ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent.pipe >> ../files/ModelicaTestOverdetermined_ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent.sim & python3 -m fmpy simulate --output-file ModelicaTestOverdetermined_ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent_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_InconsistentInitialization_Mechanical_TwoMassesEquationsFullInitialInconsistent.fmu > ModelicaTestOverdetermined_ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent.pipe 2>&1)