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.001035/0.001035, allocations: 108 kB / 15.61 MB, free: 148 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.001253/0.001253, allocations: 195.6 kB / 16.53 MB, free: 6.656 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.371/1.371, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.002932/0.002932, allocations: 0.5585 MB / 291 MB, free: 1.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 55.91 kB / 351.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1328, allocations: 49.6 MB / 401.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaTestOverdetermined.InconsistentInitialization.Mechanical.TwoMassesEquationsFullInitialInconsistent): time 0.002716/0.1356, allocations: 0.5235 MB / 401.8 MB, free: 88 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002138/0.1359, allocations: 31.89 kB / 401.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.998e-05/0.1359, allocations: 0 / 401.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.564e-05/0.136, allocations: 0 / 401.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.343e-05/0.136, allocations: 11.88 kB / 401.8 MB, free: 44 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001677/0.1362, allocations: 7.984 kB / 401.8 MB, free: 36 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.182e-05/0.1363, allocations: 19.98 kB / 401.8 MB, free: 16 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.659e-05/0.1364, allocations: 0 / 401.8 MB, free: 16 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.238e-05/0.1364, allocations: 11.92 kB / 401.9 MB, free: 4 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1623/0.2987, allocations: 10.88 kB / 401.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.2988, allocations: 1.188 kB / 401.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.21e-05/0.2988, allocations: 2.281 kB / 401.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.373e-05/0.2988, allocations: 2.891 kB / 401.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.175e-05/0.2989, allocations: 10.89 kB / 401.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.996e-05/0.2989, allocations: 12.5 kB / 401.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2989, allocations: 0 / 401.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.299, allocations: 0 / 401.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.299, allocations: 0 / 401.9 MB, free: 10.36 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.0004284/0.2994, allocations: 338.9 kB / 402.2 MB, free: 10.01 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.532e-05/0.2995, allocations: 13.7 kB / 402.2 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.2995, allocations: 35.55 kB / 402.3 MB, free: 9.969 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.738e-05/0.2996, allocations: 5 kB / 402.3 MB, free: 9.969 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.998e-05/0.2997, allocations: 171.9 kB / 402.4 MB, free: 9.773 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.2997, allocations: 2.281 kB / 402.4 MB, free: 9.773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/0.2997, allocations: 7.812 kB / 402.5 MB, free: 9.773 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.2998, allocations: 41.73 kB / 402.5 MB, free: 9.742 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.2999, allocations: 4.938 kB / 402.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.2999, allocations: 0.5625 kB / 402.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.2999, allocations: 6.375 kB / 402.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.907e-05/0.2999, allocations: 17.52 kB / 402.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002991/0.3003, allocations: 251.1 kB / 402.8 MB, free: 9.473 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.3004, allocations: 52.98 kB / 402.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.75e-05/0.3004, allocations: 22.77 kB / 402.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.268e-05/0.3004, allocations: 1.438 kB / 402.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.3005, allocations: 37.34 kB / 402.9 MB, free: 9.395 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.3005, allocations: 0 / 402.9 MB, free: 9.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006659/0.3011, allocations: 0.4969 MB / 403.4 MB, free: 8.953 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.06e-05/0.3012, allocations: 52.25 kB / 403.4 MB, free: 8.891 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.695e-05/0.3012, allocations: 102.8 kB / 403.5 MB, free: 8.793 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.457e-06/0.3012, allocations: 31.52 kB / 403.6 MB, free: 8.758 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.321e-05/0.3013, allocations: 84.27 kB / 403.6 MB, free: 8.676 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.058e-05/0.3013, allocations: 25.31 kB / 403.7 MB, free: 8.66 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.3014, allocations: 27.88 kB / 403.7 MB, free: 8.641 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.715e-05/0.3014, allocations: 320.2 kB / 404 MB, free: 8.324 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.543e-05/0.3014, allocations: 15.7 kB / 404 MB, free: 8.324 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.328e-05/0.3015, allocations: 30.5 kB / 404.1 MB, free: 8.309 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.0003632/0.3019, allocations: 251.2 kB / 404.3 MB, free: 8.102 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.3019, allocations: 0.625 kB / 404.3 MB, free: 8.102 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000166/0.302, allocations: 98.25 kB / 404.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.3021, allocations: 5.344 kB / 404.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.3021, allocations: 1.844 kB / 404.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001176/0.3022, allocations: 33.88 kB / 404.4 MB, free: 8.035 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.28e-05/0.3023, allocations: 10.36 kB / 404.4 MB, free: 8.035 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007398/0.303, allocations: 1.39 MB / 405.8 MB, free: 6.672 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.308e-05/0.3031, allocations: 2.438 kB / 405.8 MB, free: 6.672 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-06/0.3031, allocations: 2.594 kB / 405.8 MB, free: 6.672 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 7.13e-05/0.3031, allocations: 118.4 kB / 406 MB, free: 6.555 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.716e-05/0.3032, allocations: 2.172 kB / 406 MB, free: 6.555 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.08e-05/0.3032, allocations: 12.55 kB / 406 MB, free: 6.543 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.3032, allocations: 4.938 kB / 406 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3032, allocations: 1.625 kB / 406 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3032, allocations: 2.312 kB / 406 MB, free: 6.539 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004002/0.3036, allocations: 368 kB / 406.3 MB, free: 6.195 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3037, allocations: 2.25 kB / 406.3 MB, free: 6.195 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.515e-05/0.3037, allocations: 20.09 kB / 406.4 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.351e-05/0.3038, allocations: 23.17 kB / 406.4 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.3038, allocations: 6.422 kB / 406.4 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007062/0.3045, allocations: 1.384 MB / 407.8 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3045, allocations: 1 kB / 407.8 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002179/0.3048, allocations: 232.8 kB / 408 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-05/0.3048, allocations: 84.12 kB / 408.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.3048, allocations: 9.75 kB / 408.1 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.553e-05/0.3049, allocations: 1.188 kB / 408.1 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.917e-05/0.3049, allocations: 9.547 kB / 408.1 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.3049, allocations: 3.312 kB / 408.1 MB, free: 4.547 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.698e-05/0.305, allocations: 82.27 kB / 408.2 MB, free: 4.469 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.305, allocations: 0 / 408.2 MB, free: 4.469 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000253/0.3052, allocations: 16.78 kB / 408.2 MB, free: 4.465 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.0004485/0.3057, allocations: 0.7513 MB / 409 MB, free: 3.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003072/0.306, allocations: 166.5 kB / 409.1 MB, free: 3.656 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.306, allocations: 0 / 409.1 MB, free: 3.656 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.3062, allocations: 148.4 kB / 409.3 MB, free: 3.539 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.3065, allocations: 3.062 kB / 409.3 MB, free: 3.539 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.3076, allocations: 1.393 MB / 410.7 MB, free: 2.258 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001263/0.3077, allocations: 0.6896 MB / 411.3 MB, free: 1.559 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.063e-05/0.3077, allocations: 3.859 kB / 411.4 MB, free: 1.559 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.381e-05/0.3078, allocations: 14.52 kB / 411.4 MB, free: 1.551 MB / 286.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3078, allocations: 0 / 411.4 MB, free: 1.551 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.3303, allocations: 1.762 MB / 413.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.5/9.83, allocations: 7.859 kB / 413.1 MB, free: 1.16 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)