Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsReducedInitial.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.TwoMassesEquationsReducedInitial,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesEquationsReducedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsReducedInitial,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesEquationsReducedInitial",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.001341/0.001341, 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.001361/0.001361, allocations: 195.4 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.465/1.465, allocations: 222.9 MB / 240.2 MB, free: 4.367 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.00361/0.00361, allocations: 0.5622 MB / 291 MB, free: 1.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 67.88 kB / 351.7 MB, free: 2.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09615/0.09806, allocations: 49.61 MB / 401.3 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsReducedInitial): time 0.002011/0.1001, allocations: 0.499 MB / 401.8 MB, free: 64 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00017/0.1003, allocations: 27.89 kB / 401.8 MB, free: 36 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.816e-05/0.1003, allocations: 0 / 401.8 MB, free: 36 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.184e-05/0.1004, allocations: 7.938 kB / 401.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.522e-05/0.1004, allocations: 0 / 401.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001109/0.1005, allocations: 3.984 kB / 401.8 MB, free: 24 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.59e-05/0.1006, allocations: 15.94 kB / 401.8 MB, free: 8 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.093e-05/0.1006, allocations: 7.984 kB / 401.8 MB, free: 0 / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.162/0.2627, allocations: 8.719 kB / 401.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.421e-05/0.2628, allocations: 7.047 kB / 401.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.2628, allocations: 1.281 kB / 401.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.237e-06/0.2628, allocations: 1.469 kB / 401.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.907e-05/0.2628, allocations: 10.22 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.671e-05/0.2629, allocations: 7.125 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.034e-05/0.2629, allocations: 13.67 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2629, allocations: 4.594 kB / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2629, allocations: 0 / 401.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.2629, allocations: 0 / 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.0003276/0.2633, allocations: 338.1 kB / 402.2 MB, free: 9.984 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.2633, allocations: 17.2 kB / 402.2 MB, free: 9.98 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.832e-05/0.2634, allocations: 32.09 kB / 402.3 MB, free: 9.941 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.2634, allocations: 2.969 kB / 402.3 MB, free: 9.941 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.867e-05/0.2635, allocations: 163.7 kB / 402.4 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.2635, allocations: 2.094 kB / 402.4 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.064e-05/0.2635, allocations: 9.391 kB / 402.4 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.908e-05/0.2636, allocations: 48.62 kB / 402.5 MB, free: 9.715 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.2636, allocations: 3.938 kB / 402.5 MB, free: 9.711 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-06/0.2637, allocations: 2.906 kB / 402.5 MB, free: 9.711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2637, allocations: 1.281 kB / 402.5 MB, free: 9.711 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.425e-05/0.2637, allocations: 11.19 kB / 402.5 MB, free: 9.711 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003093/0.264, allocations: 301.8 kB / 402.8 MB, free: 9.41 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.264e-05/0.2641, allocations: 43.7 kB / 402.8 MB, free: 9.387 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.553e-05/0.2642, allocations: 10.16 kB / 402.8 MB, free: 9.379 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.2642, allocations: 7.625 kB / 402.9 MB, free: 9.379 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.711e-05/0.2642, allocations: 35.91 kB / 402.9 MB, free: 9.336 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.2642, allocations: 0.6562 kB / 402.9 MB, free: 9.336 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003669/0.2646, allocations: 155.5 kB / 403 MB, free: 9.203 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.828e-05/0.2646, allocations: 55.84 kB / 403.1 MB, free: 9.141 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.432e-05/0.2647, allocations: 99.09 kB / 403.2 MB, free: 9.043 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.943e-06/0.2647, allocations: 26.36 kB / 403.2 MB, free: 9.012 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.386e-05/0.2647, allocations: 97.22 kB / 403.3 MB, free: 8.918 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.2647, allocations: 15.14 kB / 403.3 MB, free: 8.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.2648, allocations: 18.53 kB / 403.3 MB, free: 8.895 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.408e-05/0.2648, allocations: 318.3 kB / 403.7 MB, free: 8.578 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.423e-05/0.2648, allocations: 9.234 kB / 403.7 MB, free: 8.578 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.62e-05/0.2649, allocations: 21.48 kB / 403.7 MB, free: 8.562 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.681e-05/0.2649, allocations: 37.47 kB / 403.7 MB, free: 8.543 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2649, allocations: 0 / 403.7 MB, free: 8.543 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001306/0.2651, allocations: 73.75 kB / 403.8 MB, free: 8.504 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.2651, allocations: 6.062 kB / 403.8 MB, free: 8.504 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.2651, allocations: 4.531 kB / 403.8 MB, free: 8.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001327/0.2652, allocations: 18.33 kB / 403.8 MB, free: 8.492 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.038e-05/0.2653, allocations: 6.234 kB / 403.8 MB, free: 8.492 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006655/0.266, allocations: 1.346 MB / 405.2 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.093e-05/0.266, allocations: 8.969 kB / 405.2 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.266, allocations: 4.781 kB / 405.2 MB, free: 7.133 MB / 286.1 MB 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 (5): * Single equations (assignments): 4 * 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 prepare postOptimizeDAE: time 4.888e-05/0.2661, allocations: 121.6 kB / 405.3 MB, free: 7.008 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.454e-05/0.2661, allocations: 2.188 kB / 405.3 MB, free: 7.008 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.593e-05/0.2661, allocations: 8.109 kB / 405.3 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2661, allocations: 0.5938 kB / 405.3 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.2661, allocations: 1.094 kB / 405.3 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.2662, allocations: 0 / 405.3 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.2663, allocations: 171.6 kB / 405.5 MB, free: 6.805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2663, allocations: 0.875 kB / 405.5 MB, free: 6.805 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.502e-05/0.2663, allocations: 3.156 kB / 405.5 MB, free: 6.805 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.595e-05/0.2664, allocations: 19.62 kB / 405.5 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.2664, allocations: 1.672 kB / 405.5 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005824/0.267, allocations: 1.344 MB / 406.9 MB, free: 5.441 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.267, allocations: 5.812 kB / 406.9 MB, free: 5.438 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001552/0.2672, allocations: 174.2 kB / 407 MB, free: 5.293 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.688e-05/0.2672, allocations: 83.03 kB / 407.1 MB, free: 5.195 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.2672, allocations: 8.438 kB / 407.1 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.889e-05/0.2673, allocations: 1.359 kB / 407.1 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.771e-05/0.2673, allocations: 2.859 kB / 407.1 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.2673, allocations: 1.656 kB / 407.1 MB, free: 5.191 MB / 286.1 MB Notification: Performance of sorting global known variables: time 1.911e-05/0.2673, allocations: 79.3 kB / 407.2 MB, free: 5.117 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2673, allocations: 0 / 407.2 MB, free: 5.117 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002376/0.2676, allocations: 13.56 kB / 407.2 MB, free: 5.113 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (x1,v1) * 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 (3): * Single equations (assignments): 2 * 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.0003278/0.2679, allocations: 0.6981 MB / 407.9 MB, free: 4.441 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002616/0.2682, allocations: 150 kB / 408.1 MB, free: 4.324 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2682, allocations: 0.75 kB / 408.1 MB, free: 4.324 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.2683, allocations: 128.3 kB / 408.2 MB, free: 4.211 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.2685, allocations: 3.25 kB / 408.2 MB, free: 4.211 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008577/0.2694, allocations: 1.289 MB / 409.5 MB, free: 3.008 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.2695, allocations: 0.6843 MB / 410.2 MB, free: 2.309 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.358e-05/0.2695, allocations: 2.344 kB / 410.2 MB, free: 2.309 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.83e-05/0.2696, allocations: 11.94 kB / 410.2 MB, free: 2.301 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2696, allocations: 0 / 410.2 MB, free: 2.301 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02779/0.2974, allocations: 1.525 MB / 411.7 MB, free: 1.969 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.589/9.886, allocations: 5.953 kB / 411.7 MB, free: 1.965 MB / 286.1 MB (rm -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsReducedInitial.pipe ; mkfifo ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsReducedInitial.pipe ; head -c 1048576 < ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsReducedInitial.pipe >> ../files/ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsReducedInitial.sim & python3 -m fmpy simulate --output-file ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsReducedInitial_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_TwoMassesEquationsReducedInitial.fmu > ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsReducedInitial.pipe 2>&1)