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.00111/0.00111, 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.001104/0.001104, allocations: 192 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.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.002903/0.002903, allocations: 0.5702 MB / 291 MB, free: 1.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.91 kB / 351.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.09482, allocations: 49.6 MB / 401.3 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsReducedInitial): time 0.001681/0.09654, allocations: 0.5094 MB / 401.8 MB, free: 84 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001494/0.0967, allocations: 23.91 kB / 401.8 MB, free: 60 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.19e-05/0.09674, allocations: 0 / 401.8 MB, free: 60 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.482e-05/0.09677, allocations: 7.938 kB / 401.8 MB, free: 52 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.287e-05/0.0968, allocations: 0 / 401.8 MB, free: 52 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001271/0.09693, allocations: 3.984 kB / 401.8 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.842e-05/0.09699, allocations: 19.92 kB / 401.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.215e-05/0.09705, allocations: 4 kB / 401.8 MB, free: 24 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.215e-05/0.09708, allocations: 15.92 kB / 401.8 MB, free: 8 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.298e-05/0.09713, allocations: 3.938 kB / 401.8 MB, free: 4 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.09715, allocations: 4 kB / 401.8 MB, free: 0 / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.126e-06/0.09717, allocations: 0 / 401.8 MB, free: 0 / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1612/0.2583, allocations: 4.953 kB / 401.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.061e-05/0.2584, allocations: 11.53 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.683e-05/0.2585, allocations: 14.89 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.2585, allocations: 0 / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.2585, allocations: 1.656 kB / 401.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.2585, allocations: 0 / 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.0003528/0.2589, allocations: 334.4 kB / 402.2 MB, free: 10 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.2589, allocations: 16.3 kB / 402.2 MB, free: 9.996 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.058e-05/0.259, allocations: 36.64 kB / 402.3 MB, free: 9.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.259, allocations: 2.297 kB / 402.3 MB, free: 9.957 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.368e-05/0.2591, allocations: 163.8 kB / 402.4 MB, free: 9.762 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.2591, allocations: 1.281 kB / 402.4 MB, free: 9.762 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.2591, allocations: 7 kB / 402.4 MB, free: 9.762 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.2593, allocations: 45.17 kB / 402.5 MB, free: 9.73 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2593, allocations: 3.938 kB / 402.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.936e-06/0.2593, allocations: 5.547 kB / 402.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.2593, allocations: 1.234 kB / 402.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.74e-05/0.2594, allocations: 15.03 kB / 402.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003365/0.2597, allocations: 303.2 kB / 402.8 MB, free: 9.426 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.157e-05/0.2598, allocations: 44.55 kB / 402.8 MB, free: 9.402 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.346e-05/0.2599, allocations: 12.89 kB / 402.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.2599, allocations: 4.297 kB / 402.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.386e-05/0.2599, allocations: 32.27 kB / 402.9 MB, free: 9.355 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.223e-06/0.2599, allocations: 0.5312 kB / 402.9 MB, free: 9.355 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003898/0.2603, allocations: 159.5 kB / 403 MB, free: 9.219 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.376e-05/0.2603, allocations: 55.5 kB / 403.1 MB, free: 9.156 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.914e-05/0.2604, allocations: 101.5 kB / 403.2 MB, free: 9.059 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.486e-06/0.2604, allocations: 27.55 kB / 403.2 MB, free: 9.027 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.534e-05/0.2604, allocations: 93.25 kB / 403.3 MB, free: 8.938 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.088e-05/0.2605, allocations: 15 kB / 403.3 MB, free: 8.93 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.2605, allocations: 19.14 kB / 403.3 MB, free: 8.914 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.485e-05/0.2606, allocations: 321.1 kB / 403.7 MB, free: 8.594 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.51e-05/0.2606, allocations: 9.391 kB / 403.7 MB, free: 8.594 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.235e-05/0.2606, allocations: 20.52 kB / 403.7 MB, free: 8.578 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.235e-05/0.2607, allocations: 32.17 kB / 403.7 MB, free: 8.562 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.2607, allocations: 3.156 kB / 403.7 MB, free: 8.562 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000135/0.2608, allocations: 73.11 kB / 403.8 MB, free: 8.523 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.2609, allocations: 10 kB / 403.8 MB, free: 8.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.2609, allocations: 0.75 kB / 403.8 MB, free: 8.52 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001497/0.261, allocations: 18.78 kB / 403.8 MB, free: 8.512 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.313e-05/0.2611, allocations: 6.75 kB / 403.8 MB, free: 8.512 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007068/0.2618, allocations: 1.346 MB / 405.2 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.195e-05/0.2618, allocations: 10.25 kB / 405.2 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.2619, allocations: 1.125 kB / 405.2 MB, free: 7.156 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 5.442e-05/0.2619, allocations: 119.5 kB / 405.3 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.2619, allocations: 2.328 kB / 405.3 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.744e-05/0.262, allocations: 8.328 kB / 405.3 MB, free: 7.027 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.262, allocations: 5.094 kB / 405.3 MB, free: 7.027 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-06/0.262, allocations: 3.938 kB / 405.3 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.262, allocations: 1.734 kB / 405.3 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001216/0.2621, allocations: 163.8 kB / 405.5 MB, free: 6.828 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2621, allocations: 3.938 kB / 405.5 MB, free: 6.824 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.664e-05/0.2622, allocations: 6.953 kB / 405.5 MB, free: 6.824 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.597e-05/0.2622, allocations: 21.22 kB / 405.5 MB, free: 6.812 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.2623, allocations: 1.531 kB / 405.5 MB, free: 6.812 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005898/0.2629, allocations: 1.344 MB / 406.9 MB, free: 5.457 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2629, allocations: 3.938 kB / 406.9 MB, free: 5.453 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001513/0.263, allocations: 172.7 kB / 407 MB, free: 5.312 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.151e-05/0.2631, allocations: 83.47 kB / 407.1 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.699e-06/0.2631, allocations: 8.891 kB / 407.1 MB, free: 5.207 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.851e-05/0.2631, allocations: 3.906 kB / 407.1 MB, free: 5.207 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.482e-05/0.2632, allocations: 3.172 kB / 407.1 MB, free: 5.207 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-06/0.2632, allocations: 1.953 kB / 407.1 MB, free: 5.207 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.25e-05/0.2632, allocations: 78.62 kB / 407.2 MB, free: 5.133 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2632, allocations: 0 / 407.2 MB, free: 5.133 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002372/0.2634, allocations: 10.12 kB / 407.2 MB, free: 5.133 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.0003451/0.2638, allocations: 0.7028 MB / 407.9 MB, free: 4.457 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002793/0.2641, allocations: 141.7 kB / 408.1 MB, free: 4.344 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2641, allocations: 0 / 408.1 MB, free: 4.344 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.2642, allocations: 131 kB / 408.2 MB, free: 4.23 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.2645, allocations: 6.516 kB / 408.2 MB, free: 4.227 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000944/0.2654, allocations: 1.282 MB / 409.5 MB, free: 3.035 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.2655, allocations: 0.684 MB / 410.2 MB, free: 2.34 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.678e-05/0.2656, allocations: 0.7812 kB / 410.2 MB, free: 2.34 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.883e-05/0.2656, allocations: 13.36 kB / 410.2 MB, free: 2.328 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2656, allocations: 0 / 410.2 MB, free: 2.328 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02154/0.2872, allocations: 1.525 MB / 411.7 MB, free: 2.004 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.776/9.063, allocations: 9.516 kB / 411.7 MB, free: 1.996 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)