Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.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.TwoMassesEquationsFullInitial,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesEquationsFullInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesEquationsFullInitial",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.001119/0.001119, 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.001164/0.001164, allocations: 194.5 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.0027/0.0027, allocations: 0.5661 MB / 291 MB, free: 1.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 67.89 kB / 351.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08203/0.08325, allocations: 49.59 MB / 401.2 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial): time 0.001646/0.08494, allocations: 0.5107 MB / 401.8 MB, free: 92 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001577/0.08511, allocations: 31.84 kB / 401.8 MB, free: 60 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.5e-05/0.08515, allocations: 3.938 kB / 401.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.5e-05/0.08517, allocations: 0 / 401.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.559e-05/0.0852, allocations: 0 / 401.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001224/0.08533, allocations: 7.922 kB / 401.8 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.892e-05/0.08539, allocations: 19.98 kB / 401.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.579e-05/0.08544, allocations: 0 / 401.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.121e-05/0.08547, allocations: 15.94 kB / 401.8 MB, free: 12 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1386/0.224, allocations: 13.81 kB / 401.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.78e-05/0.2241, allocations: 0 / 401.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.02e-05/0.2241, allocations: 0 / 401.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.025e-05/0.2241, allocations: 2.188 kB / 401.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.648e-05/0.2242, allocations: 11.64 kB / 401.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.397e-05/0.2243, allocations: 13.38 kB / 401.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2243, allocations: 0.625 kB / 401.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2243, allocations: 0.6094 kB / 401.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2243, allocations: 0 / 401.9 MB, free: 10.37 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.0003687/0.2247, allocations: 341.6 kB / 402.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.2247, allocations: 9.688 kB / 402.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.818e-05/0.2247, allocations: 35.62 kB / 402.3 MB, free: 9.977 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.532e-05/0.2248, allocations: 4.078 kB / 402.3 MB, free: 9.977 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.853e-05/0.2248, allocations: 170.3 kB / 402.4 MB, free: 9.781 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.2249, allocations: 4.672 kB / 402.4 MB, free: 9.781 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.2249, allocations: 6.312 kB / 402.4 MB, free: 9.781 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.95e-05/0.225, allocations: 43.95 kB / 402.5 MB, free: 9.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.225, allocations: 3.938 kB / 402.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-06/0.225, allocations: 1.781 kB / 402.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.225, allocations: 3.406 kB / 402.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.364e-05/0.2251, allocations: 16.34 kB / 402.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002191/0.2253, allocations: 250.3 kB / 402.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.864e-05/0.2254, allocations: 54.27 kB / 402.8 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.329e-05/0.2255, allocations: 21.95 kB / 402.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.2255, allocations: 3.156 kB / 402.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.499e-05/0.2255, allocations: 31.88 kB / 402.9 MB, free: 9.406 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.864e-06/0.2255, allocations: 1.281 kB / 402.9 MB, free: 9.406 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006085/0.2261, allocations: 0.505 MB / 403.4 MB, free: 8.965 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.692e-05/0.2261, allocations: 52.44 kB / 403.4 MB, free: 8.902 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.023e-05/0.2262, allocations: 98.52 kB / 403.5 MB, free: 8.805 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.482e-06/0.2262, allocations: 26.67 kB / 403.5 MB, free: 8.773 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.712e-05/0.2262, allocations: 84.98 kB / 403.6 MB, free: 8.691 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.2263, allocations: 25.84 kB / 403.6 MB, free: 8.676 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.373e-05/0.2263, allocations: 30.14 kB / 403.7 MB, free: 8.656 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.89e-05/0.2263, allocations: 325.1 kB / 404 MB, free: 8.336 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.183e-05/0.2264, allocations: 14.23 kB / 404 MB, free: 8.336 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.74e-05/0.2264, allocations: 27.52 kB / 404 MB, free: 8.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.2267, allocations: 250.8 kB / 404.3 MB, free: 8.117 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2267, allocations: 6.281 kB / 404.3 MB, free: 8.113 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001515/0.2268, allocations: 96.78 kB / 404.4 MB, free: 8.07 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.2269, allocations: 4.812 kB / 404.4 MB, free: 8.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2269, allocations: 2.047 kB / 404.4 MB, free: 8.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001061/0.227, allocations: 26.62 kB / 404.4 MB, free: 8.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.523e-05/0.227, allocations: 14.75 kB / 404.4 MB, free: 8.059 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007037/0.2278, allocations: 1.384 MB / 405.8 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.014e-05/0.2278, allocations: 1.672 kB / 405.8 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.2278, allocations: 6.25 kB / 405.8 MB, free: 6.695 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 0.00012/0.2279, allocations: 121 kB / 405.9 MB, free: 6.574 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.491e-05/0.228, allocations: 3.328 kB / 405.9 MB, free: 6.574 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.838e-05/0.228, allocations: 8.016 kB / 405.9 MB, free: 6.562 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.228, allocations: 5.562 kB / 406 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.228, allocations: 0.7188 kB / 406 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.228, allocations: 0.6094 kB / 406 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003276/0.2283, allocations: 374.1 kB / 406.3 MB, free: 6.215 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-06/0.2283, allocations: 2.016 kB / 406.3 MB, free: 6.215 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.763e-05/0.2284, allocations: 12.62 kB / 406.3 MB, free: 6.211 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-05/0.2285, allocations: 19.27 kB / 406.4 MB, free: 6.203 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.2285, allocations: 8.547 kB / 406.4 MB, free: 6.203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005952/0.2291, allocations: 1.383 MB / 407.7 MB, free: 4.855 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2291, allocations: 2.109 kB / 407.7 MB, free: 4.855 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001857/0.2293, allocations: 229.6 kB / 408 MB, free: 4.68 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.94e-05/0.2293, allocations: 85.05 kB / 408.1 MB, free: 4.582 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.118e-05/0.2293, allocations: 10.28 kB / 408.1 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.626e-05/0.2294, allocations: 1.953 kB / 408.1 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.462e-05/0.2294, allocations: 16.81 kB / 408.1 MB, free: 4.566 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.2294, allocations: 2.875 kB / 408.1 MB, free: 4.566 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.174e-05/0.2295, allocations: 79.47 kB / 408.2 MB, free: 4.492 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2295, allocations: 3.938 kB / 408.2 MB, free: 4.488 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002407/0.2297, allocations: 13.03 kB / 408.2 MB, free: 4.488 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.0003406/0.2301, allocations: 0.7546 MB / 408.9 MB, free: 3.789 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002516/0.2303, allocations: 170.6 kB / 409.1 MB, free: 3.676 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2303, allocations: 64 / 409.1 MB, free: 3.676 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.2305, allocations: 151.7 kB / 409.2 MB, free: 3.555 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.2307, allocations: 7.109 kB / 409.3 MB, free: 3.555 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008807/0.2316, allocations: 1.39 MB / 410.6 MB, free: 2.277 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001062/0.2317, allocations: 0.6838 MB / 411.3 MB, free: 1.582 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.808e-05/0.2317, allocations: 3.719 kB / 411.3 MB, free: 1.582 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.644e-05/0.2318, allocations: 14.34 kB / 411.3 MB, free: 1.574 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2318, allocations: 9.375 kB / 411.4 MB, free: 1.566 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.2527, allocations: 1.729 MB / 413.1 MB, free: 1.223 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.865/9.118, allocations: 6.578 kB / 413.1 MB, free: 1.219 MB / 286.1 MB (rm -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.pipe ; mkfifo ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.pipe ; head -c 1048576 < ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.pipe >> ../files/ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.sim & python3 -m fmpy simulate --output-file ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial_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_TwoMassesEquationsFullInitial.fmu > ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesEquationsFullInitial.pipe 2>&1)