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.00196/0.00196, 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.001981/0.001981, allocations: 196.8 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.555/1.555, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.003097/0.003097, allocations: 0.5624 MB / 291 MB, free: 1.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 64.09 kB / 351.7 MB, free: 2.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1196, allocations: 49.59 MB / 401.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent): time 0.001857/0.1214, allocations: 0.5328 MB / 401.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001728/0.1216, allocations: 27.84 kB / 401.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.797e-05/0.1217, allocations: 0 / 401.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.841e-05/0.1217, allocations: 0 / 401.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.621e-05/0.1217, allocations: 0 / 401.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001429/0.1219, allocations: 15.92 kB / 401.8 MB, free: 12 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.183/0.3049, allocations: 15.98 kB / 401.8 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.372e-05/0.305, allocations: 3.406 kB / 401.8 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.79e-05/0.3051, allocations: 13.72 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.922e-05/0.3052, allocations: 12.45 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.3052, allocations: 2.156 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.018e-05/0.3052, allocations: 1.656 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.205e-05/0.3052, allocations: 5.891 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.242e-05/0.3053, allocations: 7.953 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.258e-05/0.3054, allocations: 17.3 kB / 401.9 MB, free: 10.33 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3054, allocations: 1.188 kB / 401.9 MB, free: 10.33 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3054, allocations: 0 / 401.9 MB, free: 10.33 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.3054, allocations: 0 / 401.9 MB, free: 10.33 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.000401/0.3058, allocations: 341 kB / 402.2 MB, free: 9.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.3059, allocations: 13.64 kB / 402.3 MB, free: 9.977 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.89e-05/0.3059, allocations: 34.56 kB / 402.3 MB, free: 9.938 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.675e-05/0.3059, allocations: 3.969 kB / 402.3 MB, free: 9.938 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.755e-05/0.306, allocations: 166.7 kB / 402.5 MB, free: 9.742 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.306, allocations: 2.562 kB / 402.5 MB, free: 9.742 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.3061, allocations: 6.344 kB / 402.5 MB, free: 9.742 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.3062, allocations: 47.14 kB / 402.5 MB, free: 9.711 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.3062, allocations: 3.938 kB / 402.5 MB, free: 9.707 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.3062, allocations: 3.5 kB / 402.5 MB, free: 9.707 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.3062, allocations: 0.5625 kB / 402.5 MB, free: 9.707 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.261e-05/0.3063, allocations: 10.42 kB / 402.5 MB, free: 9.707 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002641/0.3066, allocations: 261.1 kB / 402.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.3067, allocations: 51.81 kB / 402.8 MB, free: 9.41 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.406e-05/0.3067, allocations: 20.2 kB / 402.8 MB, free: 9.402 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.3068, allocations: 2.312 kB / 402.9 MB, free: 9.402 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.3068, allocations: 37.17 kB / 402.9 MB, free: 9.359 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.784e-06/0.3068, allocations: 2.484 kB / 402.9 MB, free: 9.359 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006986/0.3075, allocations: 0.4995 MB / 403.4 MB, free: 8.922 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.3075, allocations: 52.66 kB / 403.4 MB, free: 8.859 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.406e-05/0.3076, allocations: 99.2 kB / 403.5 MB, free: 8.762 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/0.3076, allocations: 30.52 kB / 403.6 MB, free: 8.727 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.051e-05/0.3077, allocations: 84.2 kB / 403.6 MB, free: 8.645 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.516e-05/0.3077, allocations: 29.45 kB / 403.7 MB, free: 8.629 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.866e-05/0.3078, allocations: 24.31 kB / 403.7 MB, free: 8.613 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.3078, allocations: 321.5 kB / 404 MB, free: 8.293 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.769e-05/0.3079, allocations: 18.12 kB / 404 MB, free: 8.293 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.666e-05/0.3079, allocations: 31.41 kB / 404.1 MB, free: 8.273 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.0004068/0.3083, allocations: 254.5 kB / 404.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.3083, allocations: 0 / 404.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001632/0.3085, allocations: 98.34 kB / 404.4 MB, free: 8.023 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3085, allocations: 4.938 kB / 404.4 MB, free: 8.023 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3085, allocations: 0 / 404.4 MB, free: 8.023 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001229/0.3087, allocations: 26.2 kB / 404.4 MB, free: 8.012 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.766e-05/0.3088, allocations: 18.2 kB / 404.5 MB, free: 8.008 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007964/0.3096, allocations: 1.388 MB / 405.8 MB, free: 6.645 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.247e-05/0.3096, allocations: 4.672 kB / 405.8 MB, free: 6.645 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.3096, allocations: 2.906 kB / 405.9 MB, free: 6.645 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 6.617e-05/0.3097, allocations: 117 kB / 406 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.598e-05/0.3097, allocations: 1.938 kB / 406 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.542e-05/0.3097, allocations: 8.703 kB / 406 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3097, allocations: 1.891 kB / 406 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.3098, allocations: 4.969 kB / 406 MB, free: 6.512 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3098, allocations: 0.6562 kB / 406 MB, free: 6.512 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004249/0.3102, allocations: 370.8 kB / 406.3 MB, free: 6.172 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.3102, allocations: 1.5 kB / 406.3 MB, free: 6.172 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.746e-05/0.3103, allocations: 11.94 kB / 406.4 MB, free: 6.168 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.09e-05/0.3104, allocations: 26.81 kB / 406.4 MB, free: 6.156 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/0.3104, allocations: 5.406 kB / 406.4 MB, free: 6.152 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007882/0.3112, allocations: 1.38 MB / 407.8 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.3112, allocations: 4.969 kB / 407.8 MB, free: 4.805 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002361/0.3115, allocations: 231.1 kB / 408 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.487e-05/0.3115, allocations: 83.88 kB / 408.1 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.3115, allocations: 9.625 kB / 408.1 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.948e-05/0.3116, allocations: 4.75 kB / 408.1 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.971e-05/0.3116, allocations: 7.188 kB / 408.1 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.3116, allocations: 2.094 kB / 408.1 MB, free: 4.527 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.081e-05/0.3117, allocations: 79.69 kB / 408.2 MB, free: 4.453 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3117, allocations: 3.938 kB / 408.2 MB, free: 4.449 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.3119, allocations: 12.53 kB / 408.2 MB, free: 4.449 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.0003973/0.3123, allocations: 0.7609 MB / 409 MB, free: 3.746 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003042/0.3126, allocations: 164.4 kB / 409.1 MB, free: 3.633 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3127, allocations: 0 / 409.1 MB, free: 3.633 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.3128, allocations: 147.9 kB / 409.3 MB, free: 3.516 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.3131, allocations: 6.312 kB / 409.3 MB, free: 3.516 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.3141, allocations: 1.398 MB / 410.7 MB, free: 2.234 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001349/0.3143, allocations: 0.688 MB / 411.4 MB, free: 1.535 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.578e-05/0.3143, allocations: 2.781 kB / 411.4 MB, free: 1.535 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.112e-05/0.3144, allocations: 11.48 kB / 411.4 MB, free: 1.531 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3144, allocations: 0 / 411.4 MB, free: 1.531 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03869/0.3531, allocations: 1.759 MB / 413.1 MB, free: 1.141 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/10.45, allocations: 4.891 kB / 413.1 MB, free: 1.137 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)