Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedSteadyState.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.TwoMassesReducedSteadyState,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesReducedSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedSteadyState,fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined_ConsistentInitialization_Mechanical_TwoMassesReducedSteadyState",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.004969/0.004969, allocations: 100.8 kB / 15.73 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 191 kB / 16.67 MB, free: 5.961 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 4.305 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.003469/0.003469, allocations: 0.5624 MB / 291.1 MB, free: 1.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.2027/0.2027, allocations: 64.7 kB / 401.9 MB, free: 9.859 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.3103, allocations: 49.59 MB / 451.5 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedSteadyState): time 0.003/0.3133, allocations: 1.645 MB / 453.2 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000338/0.3137, allocations: 103.6 kB / 453.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.565e-05/0.3138, allocations: 0 / 453.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.812e-05/0.3139, allocations: 15.86 kB / 453.3 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.314, allocations: 31.7 kB / 453.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001495/0.3142, allocations: 19.97 kB / 453.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001337/0.3143, allocations: 107.5 kB / 453.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.3145, allocations: 35.97 kB / 453.5 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.333e-05/0.3146, allocations: 43.86 kB / 453.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.83e-05/0.3147, allocations: 47.77 kB / 453.6 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.3147, allocations: 12 kB / 453.6 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.876e-05/0.3147, allocations: 8 kB / 453.6 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.744e-05/0.3148, allocations: 15.92 kB / 453.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.71e-05/0.3148, allocations: 51.8 kB / 453.6 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.315, allocations: 111.2 kB / 453.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.315, allocations: 0 / 453.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.315, allocations: 3.938 kB / 453.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.004e-06/0.315, allocations: 0 / 453.8 MB, free: 3.684 MB / 318.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.0005822/0.3156, allocations: 407.2 kB / 454.1 MB, free: 3.234 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3157, allocations: 8.031 kB / 454.2 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.468e-05/0.3157, allocations: 42.73 kB / 454.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.867e-05/0.3158, allocations: 16.89 kB / 454.2 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001875/0.316, allocations: 184.2 kB / 454.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.316, allocations: 8.562 kB / 454.4 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.399e-05/0.316, allocations: 12.36 kB / 454.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.3162, allocations: 94.73 kB / 454.5 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3163, allocations: 0 / 454.5 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.3163, allocations: 11.98 kB / 454.5 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.3163, allocations: 0 / 454.5 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.3164, allocations: 59.91 kB / 454.6 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005761/0.317, allocations: 384.7 kB / 455 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.3172, allocations: 106.4 kB / 455.1 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.24e-05/0.3173, allocations: 40.84 kB / 455.1 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.315e-05/0.3173, allocations: 0 / 455.1 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.3173, allocations: 34.56 kB / 455.1 MB, free: 2.129 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 9.11e-07/0.3173, allocations: 0 / 455.1 MB, free: 2.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.001137/0.3185, allocations: 0.6914 MB / 455.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.3185, allocations: 55.41 kB / 455.9 MB, free: 1.277 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.3186, allocations: 118.9 kB / 456 MB, free: 1.152 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.3187, allocations: 29.64 kB / 456 MB, free: 1.117 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.213e-05/0.3187, allocations: 100.4 kB / 456.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.212e-05/0.3188, allocations: 59.48 kB / 456.2 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.959e-05/0.3188, allocations: 29.7 kB / 456.2 MB, free: 0.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.319, allocations: 326.8 kB / 456.5 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.675e-05/0.319, allocations: 31.98 kB / 456.6 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.431e-05/0.3191, allocations: 62.52 kB / 456.6 MB, free: 500 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.3193, allocations: 110 kB / 456.7 MB, free: 384 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.3193, allocations: 0 / 456.7 MB, free: 384 kB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001994/0.3195, allocations: 133.5 kB / 456.9 MB, free: 244 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.3195, allocations: 12.03 kB / 456.9 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3195, allocations: 0 / 456.9 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.3195, allocations: 3.984 kB / 456.9 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.3197, allocations: 35.97 kB / 456.9 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.3197, allocations: 4 kB / 456.9 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.647e-05/0.3198, allocations: 7.938 kB / 456.9 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.3198, allocations: 4 kB / 456.9 MB, free: 176 kB / 318.1 MB 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.206e-05/0.3199, allocations: 121.8 kB / 457 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.32, allocations: 23.89 kB / 457.1 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.446e-05/0.32, allocations: 16.83 kB / 457.1 MB, free: 0 / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.506e-05/0.32, allocations: 4.047 kB / 457.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3201, allocations: 3.938 kB / 457.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3201, allocations: 0 / 457.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006331/0.3207, allocations: 0.4937 MB / 457.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.3207, allocations: 4.031 kB / 457.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.3208, allocations: 27.92 kB / 457.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001187/0.321, allocations: 20.86 kB / 457.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.321, allocations: 4 kB / 457.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.3221, allocations: 1.371 MB / 459 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.3221, allocations: 4.031 kB / 459 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003389/0.3224, allocations: 306.8 kB / 459.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.489e-05/0.3225, allocations: 85.05 kB / 459.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.3225, allocations: 4 kB / 459.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.71e-05/0.3226, allocations: 4 kB / 459.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.3226, allocations: 15.92 kB / 459.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-06/0.3227, allocations: 8.062 kB / 459.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.707e-05/0.3227, allocations: 95.7 kB / 459.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3227, allocations: 0 / 459.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002618/0.323, allocations: 28 kB / 459.5 MB, free: 13.28 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (mass1.s,mass1.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.0006636/0.3237, allocations: 0.8397 MB / 460.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001893/0.3239, allocations: 91.91 kB / 460.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3239, allocations: 0 / 460.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002608/0.3241, allocations: 170.6 kB / 460.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004028/0.3246, allocations: 24.27 kB / 460.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.3263, allocations: 1.805 MB / 462.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.3266, allocations: 0.7045 MB / 463.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.213e-05/0.3267, allocations: 17.08 kB / 463.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.683e-05/0.3268, allocations: 25.81 kB / 463.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3268, allocations: 0 / 463.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02465/0.3514, allocations: 2.926 MB / 466.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.159/9.511, allocations: 23.28 kB / 466.2 MB, free: 6.723 MB / 334.1 MB (rm -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedSteadyState.pipe ; mkfifo ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedSteadyState.pipe ; head -c 1048576 < ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedSteadyState.pipe >> ../files/ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedSteadyState.sim & python3 -m fmpy simulate --output-file ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedSteadyState_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_TwoMassesReducedSteadyState.fmu > ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Mechanical.TwoMassesReducedSteadyState.pipe 2>&1)