Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesFullInitial.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.TwoMassesFullInitial,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesFullInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesFullInitial,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesFullInitial",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.001204/0.001204, 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.001214/0.001214, allocations: 194.6 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.422 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.002955/0.002955, allocations: 0.5624 MB / 291 MB, free: 1.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001238, allocations: 63.91 kB / 351.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08915/0.0904, allocations: 49.6 MB / 401.3 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesFullInitial): time 0.1684/0.2588, allocations: 1.639 MB / 402.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003566/0.2592, allocations: 95.75 kB / 403 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.2594, allocations: 1.281 kB / 403 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.434e-05/0.2595, allocations: 14.02 kB / 403 MB, free: 9.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.2596, allocations: 35.78 kB / 403 MB, free: 9.965 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001447/0.2598, allocations: 23.22 kB / 403.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.2599, allocations: 107 kB / 403.2 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.2601, allocations: 40.3 kB / 403.2 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.143e-05/0.2602, allocations: 34.62 kB / 403.2 MB, free: 9.926 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.924e-05/0.2603, allocations: 44.58 kB / 403.3 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.2603, allocations: 9.281 kB / 403.3 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.649e-05/0.2604, allocations: 10.78 kB / 403.3 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.696e-05/0.2604, allocations: 20.47 kB / 403.3 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.257e-05/0.2605, allocations: 52.66 kB / 403.4 MB, free: 9.871 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.2606, allocations: 104.6 kB / 403.5 MB, free: 9.836 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2606, allocations: 0 / 403.5 MB, free: 9.836 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2606, allocations: 1.031 kB / 403.5 MB, free: 9.836 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.2607, allocations: 0 / 403.5 MB, free: 9.836 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0004957/0.2612, allocations: 401.6 kB / 403.9 MB, free: 9.441 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.2612, allocations: 10.83 kB / 403.9 MB, free: 9.441 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.637e-05/0.2613, allocations: 44.03 kB / 403.9 MB, free: 9.395 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.545e-05/0.2613, allocations: 14.34 kB / 403.9 MB, free: 9.387 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.2615, allocations: 184.7 kB / 404.1 MB, free: 9.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.2615, allocations: 9.5 kB / 404.1 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.071e-05/0.2615, allocations: 15.11 kB / 404.1 MB, free: 9.168 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.2617, allocations: 95.3 kB / 404.2 MB, free: 9.109 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.2618, allocations: 1 kB / 404.2 MB, free: 9.109 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.2618, allocations: 4.625 kB / 404.2 MB, free: 9.105 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.2618, allocations: 10.91 kB / 404.2 MB, free: 9.098 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.2619, allocations: 55.97 kB / 404.3 MB, free: 9.082 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005623/0.2625, allocations: 384.9 kB / 404.7 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001887/0.2627, allocations: 98.98 kB / 404.8 MB, free: 8.699 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.173e-05/0.2628, allocations: 41.77 kB / 404.8 MB, free: 8.676 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.2628, allocations: 1.844 kB / 404.8 MB, free: 8.676 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.673e-05/0.2628, allocations: 32.19 kB / 404.8 MB, free: 8.637 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.2628, allocations: 3.938 kB / 404.9 MB, free: 8.633 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.001012/0.2639, allocations: 0.6925 MB / 405.5 MB, free: 8.051 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.163e-05/0.2639, allocations: 53.25 kB / 405.6 MB, free: 7.988 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.392e-05/0.264, allocations: 124.8 kB / 405.7 MB, free: 7.879 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.264, allocations: 29.7 kB / 405.7 MB, free: 7.844 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.022e-05/0.264, allocations: 98.81 kB / 405.8 MB, free: 7.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.544e-05/0.2641, allocations: 58.88 kB / 405.9 MB, free: 7.703 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-05/0.2641, allocations: 38.45 kB / 405.9 MB, free: 7.672 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.63e-05/0.2642, allocations: 325.6 kB / 406.3 MB, free: 7.352 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.669e-05/0.2643, allocations: 33.84 kB / 406.3 MB, free: 7.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.622e-05/0.2643, allocations: 66.36 kB / 406.4 MB, free: 7.297 MB / 286.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: mass1.v = $START.mass1.v ($START.mass2.v = $START.mass1.v) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: mass2.s = $START.mass2.s ($START.mass1.s + 0.5 * (mass1.L + mass2.L) = $START.mass2.s) Notification: Performance of analyzeInitialSystem (initialization): time 0.0007218/0.2651, allocations: 412.5 kB / 406.8 MB, free: 7.004 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2651, allocations: 3.938 kB / 406.8 MB, free: 7 MB / 286.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002534/0.2653, allocations: 167.2 kB / 406.9 MB, free: 6.906 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.2654, allocations: 9.422 kB / 406.9 MB, free: 6.902 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2654, allocations: 1 kB / 406.9 MB, free: 6.902 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001311/0.2655, allocations: 31.8 kB / 407 MB, free: 6.887 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.935e-05/0.2656, allocations: 23.42 kB / 407 MB, free: 6.887 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009242/0.2666, allocations: 1.616 MB / 408.6 MB, free: 5.277 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.649e-05/0.2666, allocations: 5.406 kB / 408.6 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.2666, allocations: 5.125 kB / 408.6 MB, free: 5.273 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: mass1.v = $START.mass1.v mass2.s = $START.mass2.s. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (16): * Single equations (assignments): 15 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.5e-05/0.2667, allocations: 140 kB / 408.8 MB, free: 5.141 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.283e-05/0.2668, allocations: 11.84 kB / 408.8 MB, free: 5.137 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.941e-05/0.2668, allocations: 14.28 kB / 408.8 MB, free: 5.121 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2668, allocations: 2.219 kB / 408.8 MB, free: 5.121 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2668, allocations: 0.7188 kB / 408.8 MB, free: 5.121 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2668, allocations: 1.281 kB / 408.8 MB, free: 5.121 MB / 286.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005302/0.2674, allocations: 0.5972 MB / 409.4 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2674, allocations: 1.188 kB / 409.4 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.2675, allocations: 24.56 kB / 409.4 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.533e-05/0.2676, allocations: 21.16 kB / 409.4 MB, free: 4.559 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.2676, allocations: 6.281 kB / 409.4 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006144/0.2682, allocations: 1.367 MB / 410.8 MB, free: 3.152 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2682, allocations: 5.344 kB / 410.8 MB, free: 3.148 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002878/0.2685, allocations: 308.2 kB / 411.1 MB, free: 2.922 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.142e-05/0.2686, allocations: 84.58 kB / 411.2 MB, free: 2.824 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.2686, allocations: 7.938 kB / 411.2 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.714e-05/0.2687, allocations: 3.5 kB / 411.2 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.597e-05/0.2687, allocations: 11.34 kB / 411.2 MB, free: 2.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.2687, allocations: 4 kB / 411.2 MB, free: 2.812 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.736e-05/0.2688, allocations: 101.5 kB / 411.3 MB, free: 2.727 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2688, allocations: 0 / 411.3 MB, free: 2.727 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003231/0.2691, allocations: 38.72 kB / 411.3 MB, free: 2.715 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (mass2.s,mass2.v) * 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 (15): * Single equations (assignments): 14 * 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.0004418/0.2696, allocations: 0.8353 MB / 412.2 MB, free: 1.953 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003886/0.27, allocations: 241.4 kB / 412.4 MB, free: 1.789 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.27, allocations: 0 / 412.4 MB, free: 1.789 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.2701, allocations: 162.8 kB / 412.6 MB, free: 1.664 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.2705, allocations: 30.45 kB / 412.6 MB, free: 1.652 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.2721, allocations: 1.845 MB / 414.5 MB, free: 72 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.2724, allocations: 0.7053 MB / 415.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.733e-05/0.2725, allocations: 10.34 kB / 415.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.056e-05/0.2726, allocations: 31.11 kB / 415.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2726, allocations: 1.5 kB / 415.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02591/0.2985, allocations: 2.962 MB / 418.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.024/9.323, allocations: 16.84 kB / 418.2 MB, free: 14.92 MB / 302.1 MB (rm -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesFullInitial.pipe ; mkfifo ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesFullInitial.pipe ; head -c 1048576 < ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesFullInitial.pipe >> ../files/ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesFullInitial.sim & python3 -m fmpy simulate --output-file ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesFullInitial_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesFullInitial.fmu > ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesFullInitial.pipe 2>&1)