Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",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.009255/0.009255, allocations: 98.38 kB / 15.73 MB, free: 6.012 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.002085/0.002085, allocations: 197 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04998/0.04998, allocations: 8.108 MB / 278 MB, free: 3.949 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002245/0.002246, allocations: 67.8 kB / 386.1 MB, free: 47.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08162/0.08388, allocations: 48.31 MB / 434.5 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003317/0.08725, allocations: 2.418 MB / 436.9 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.08832, allocations: 0.628 MB / 437.5 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.08852, allocations: 4 kB / 437.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001798/0.0887, allocations: 35.59 kB / 437.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.08886, allocations: 71.36 kB / 437.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.08914, allocations: 71.89 kB / 437.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003062/0.08945, allocations: 294.8 kB / 438 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.08968, allocations: 98.2 kB / 438.1 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.08983, allocations: 111.6 kB / 438.2 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.08999, allocations: 135.4 kB / 438.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.252e-05/0.09004, allocations: 24 kB / 438.3 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.957e-05/0.09009, allocations: 20 kB / 438.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.82e-05/0.09014, allocations: 47.84 kB / 438.4 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.09027, allocations: 131.4 kB / 438.5 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.09055, allocations: 274.8 kB / 438.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.09056, allocations: 0 / 438.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.09057, allocations: 0 / 438.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.09058, allocations: 0 / 438.8 MB, free: 4.734 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009066/0.0915, allocations: 0.5784 MB / 439.4 MB, free: 4.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.09155, allocations: 12.03 kB / 439.4 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.284e-05/0.09161, allocations: 54.72 kB / 439.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.551e-05/0.09167, allocations: 36.75 kB / 439.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.09203, allocations: 244.6 kB / 439.7 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.09207, allocations: 20.81 kB / 439.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.205e-05/0.09212, allocations: 24.38 kB / 439.8 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004614/0.09258, allocations: 227.3 kB / 440 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.09261, allocations: 0 / 440 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.185e-05/0.09264, allocations: 12 kB / 440 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.09265, allocations: 4 kB / 440 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004949/0.09315, allocations: 201.6 kB / 440.2 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008142/0.09398, allocations: 0.7099 MB / 440.9 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006399/0.09463, allocations: 253.8 kB / 441.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002599/0.0949, allocations: 116.8 kB / 441.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.09493, allocations: 4 kB / 441.3 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003674/0.0953, allocations: 167.2 kB / 441.4 MB, free: 1.906 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.743e-06/0.09531, allocations: 0 / 441.4 MB, free: 1.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002131/0.09745, allocations: 1.115 MB / 442.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/0.09751, allocations: 63.39 kB / 442.6 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.09764, allocations: 179.5 kB / 442.8 MB, free: 452 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.09766, allocations: 33.7 kB / 442.8 MB, free: 412 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.847e-05/0.09774, allocations: 144.8 kB / 443 MB, free: 264 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.0978, allocations: 103.1 kB / 443.1 MB, free: 160 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-05/0.09787, allocations: 53.7 kB / 443.1 MB, free: 100 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.09806, allocations: 330.8 kB / 443.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003016/0.09836, allocations: 99.88 kB / 443.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000303/0.09868, allocations: 129.4 kB / 443.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.1001, allocations: 0.5037 MB / 444.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1001, allocations: 0 / 444.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000785/0.1009, allocations: 340.3 kB / 444.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.575e-05/0.1009, allocations: 39.67 kB / 444.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1009, allocations: 0 / 444.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.101, allocations: 0 / 444.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002983/0.1013, allocations: 67.89 kB / 444.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.1013, allocations: 7.984 kB / 444.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.1015, allocations: 28.02 kB / 444.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.1015, allocations: 8 kB / 444.6 MB, free: 14.51 MB / 334.1 MB Warning: Assuming fixed start value for the following 4 variables: springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true nominal = if springDamper.phi_nominal >= 1e-15 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true nominal = if damper.phi_nominal >= 1e-15 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real damper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.trapezoid.count,$PRE.trapezoid.T_start,trapezoid.count,trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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 0.000252/0.1018, allocations: 168.5 kB / 444.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.774e-05/0.1018, allocations: 23.8 kB / 444.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.849e-05/0.1019, allocations: 30.64 kB / 444.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.1019, allocations: 4 kB / 444.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1019, allocations: 0 / 444.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.102, allocations: 0 / 444.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/0.1032, allocations: 0.7148 MB / 445.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.1033, allocations: 0 / 445.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003111/0.1036, allocations: 67.89 kB / 445.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.1036, allocations: 4 kB / 445.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.1036, allocations: 4 kB / 445.7 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.1036, allocations: 4 kB / 445.7 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1036, allocations: 64 / 445.7 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.1047, allocations: 0.5095 MB / 446.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.846e-05/0.1048, allocations: 97 kB / 446.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.687e-05/0.1049, allocations: 8 kB / 446.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.1051, allocations: 23.97 kB / 446.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.893e-05/0.1052, allocations: 27.84 kB / 446.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.985e-05/0.1052, allocations: 12 kB / 446.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001284/0.1053, allocations: 132.6 kB / 446.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1054, allocations: 0 / 446.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.1057, allocations: 64 kB / 446.5 MB, free: 12.51 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00142/0.1071, allocations: 1.034 MB / 447.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007434/0.1079, allocations: 304 kB / 447.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1079, allocations: 3.938 kB / 447.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003671/0.1083, allocations: 140.4 kB / 448 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004452/0.1087, allocations: 63.75 kB / 448.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005666/0.1144, allocations: 2.914 MB / 451 MB, free: 7.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.1148, allocations: 0.7441 MB / 451.7 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.1149, allocations: 26.28 kB / 451.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.1151, allocations: 75.41 kB / 451.8 MB, free: 7.039 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1151, allocations: 0 / 451.8 MB, free: 7.039 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02961/0.1447, allocations: 5.207 MB / 457 MB, free: 1.938 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.255/8.4, allocations: 3.859 kB / 457 MB, free: 1.934 MB / 334.1 MB (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)