Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.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_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",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.0009482/0.0009483, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009466/0.0009466, allocations: 190.3 kB / 16.25 MB, free: 6.629 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.181/1.181, allocations: 205.1 MB / 222.1 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03925/0.03925, allocations: 8.102 MB / 277.6 MB, free: 13.35 MB / 238.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.001374/0.001374, allocations: 68.38 kB / 336.8 MB, free: 26.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06667/0.06806, allocations: 48.29 MB / 385.1 MB, free: 10.42 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003203/0.0713, allocations: 2.462 MB / 387.6 MB, free: 7.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008882/0.0722, allocations: 0.6709 MB / 388.2 MB, free: 7.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.07231, allocations: 7.938 kB / 388.2 MB, free: 7.246 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.07245, allocations: 27.78 kB / 388.3 MB, free: 7.219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001277/0.07258, allocations: 67.52 kB / 388.3 MB, free: 7.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002001/0.07279, allocations: 51.95 kB / 388.4 MB, free: 7.102 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002717/0.07307, allocations: 298.8 kB / 388.7 MB, free: 6.809 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.07325, allocations: 102.2 kB / 388.8 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.07337, allocations: 115.6 kB / 388.9 MB, free: 6.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001296/0.07351, allocations: 131.4 kB / 389 MB, free: 6.461 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.609e-05/0.07355, allocations: 24 kB / 389 MB, free: 6.438 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.553e-05/0.07359, allocations: 24 kB / 389.1 MB, free: 6.414 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.414e-05/0.07364, allocations: 51.78 kB / 389.1 MB, free: 6.363 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.07376, allocations: 131.4 kB / 389.2 MB, free: 6.234 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.074, allocations: 275 kB / 389.5 MB, free: 5.965 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.07401, allocations: 0 / 389.5 MB, free: 5.965 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.07401, allocations: 0 / 389.5 MB, free: 5.965 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.07402, allocations: 0 / 389.5 MB, free: 5.965 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008566/0.07488, allocations: 0.5826 MB / 390.1 MB, free: 5.328 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.07492, allocations: 8.031 kB / 390.1 MB, free: 5.32 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.262e-05/0.07498, allocations: 54.73 kB / 390.1 MB, free: 5.258 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.019e-05/0.07503, allocations: 24.66 kB / 390.2 MB, free: 5.234 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.07526, allocations: 260.7 kB / 390.4 MB, free: 4.941 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.07529, allocations: 16.81 kB / 390.4 MB, free: 4.926 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.449e-05/0.07534, allocations: 24.38 kB / 390.5 MB, free: 4.902 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004728/0.07581, allocations: 227.3 kB / 390.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.07584, allocations: 0 / 390.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.07587, allocations: 12 kB / 390.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.07588, allocations: 11.94 kB / 390.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000504/0.07639, allocations: 197.5 kB / 390.9 MB, free: 4.457 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008813/0.07728, allocations: 0.67 MB / 391.6 MB, free: 3.734 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006237/0.07791, allocations: 248.7 kB / 391.8 MB, free: 3.484 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.07819, allocations: 117.2 kB / 391.9 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.07822, allocations: 11.94 kB / 391.9 MB, free: 3.355 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/0.07861, allocations: 177.1 kB / 392.1 MB, free: 3.172 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.07862, allocations: 0 / 392.1 MB, free: 3.172 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.00225/0.08088, allocations: 1.191 MB / 393.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.08093, allocations: 59.41 kB / 393.4 MB, free: 1.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.08106, allocations: 182.9 kB / 393.5 MB, free: 1.633 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.0811, allocations: 29.7 kB / 393.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.922e-05/0.08117, allocations: 140.8 kB / 393.7 MB, free: 1.457 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.127e-05/0.08125, allocations: 114.4 kB / 393.8 MB, free: 1.344 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.696e-05/0.08133, allocations: 53.7 kB / 393.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.493e-05/0.08143, allocations: 338.8 kB / 394.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002615/0.0817, allocations: 96.25 kB / 394.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002721/0.08198, allocations: 135.3 kB / 394.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.08318, allocations: 0.5504 MB / 395 MB, free: 136 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.08319, allocations: 0 / 395 MB, free: 136 kB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006855/0.08388, allocations: 358.5 kB / 395.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.08392, allocations: 45.62 kB / 395.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.08393, allocations: 0 / 395.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.08395, allocations: 4 kB / 395.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002797/0.08423, allocations: 67.89 kB / 395.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.08425, allocations: 8.062 kB / 395.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.08446, allocations: 27.97 kB / 395.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.08449, allocations: 8 kB / 395.5 MB, free: 15.6 MB / 302.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: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$PRE.trapezoid.count,$PRE.trapezoid.T_start,$PRE.speedSensor.w,trapezoid.count,trapezoid.T_start,speedSensor.w,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * 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.0001793/0.08467, allocations: 167.7 kB / 395.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.324e-05/0.08471, allocations: 23.66 kB / 395.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.555e-05/0.08477, allocations: 26.66 kB / 395.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.08478, allocations: 4 kB / 395.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.08479, allocations: 0 / 395.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.0848, allocations: 7.922 kB / 395.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.08588, allocations: 0.7798 MB / 396.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.08589, allocations: 4 kB / 396.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003044/0.0862, allocations: 79.95 kB / 396.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.08621, allocations: 0 / 396.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.08624, allocations: 8 kB / 396.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.08625, allocations: 0 / 396.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.08625, allocations: 4 kB / 396.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009077/0.08716, allocations: 0.5356 MB / 397.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.78e-05/0.08722, allocations: 92.92 kB / 397.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.08726, allocations: 16.02 kB / 397.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.08748, allocations: 19.98 kB / 397.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.04e-05/0.08757, allocations: 39.89 kB / 397.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.08759, allocations: 8 kB / 397.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.937e-05/0.08769, allocations: 136.3 kB / 397.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08769, allocations: 0 / 397.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002827/0.08798, allocations: 64 kB / 397.5 MB, free: 13.48 MB / 302.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: 5 ($whenCondition2,$whenCondition1,speedSensor.w,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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001132/0.08912, allocations: 1.078 MB / 398.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006704/0.0898, allocations: 342.9 kB / 398.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.08981, allocations: 0 / 398.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003054/0.09012, allocations: 148.3 kB / 399 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004019/0.09053, allocations: 63.81 kB / 399.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00462/0.09516, allocations: 3.082 MB / 402.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.09542, allocations: 0.7598 MB / 403 MB, free: 7.844 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.286e-05/0.09552, allocations: 22.28 kB / 403 MB, free: 7.824 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.09565, allocations: 79.41 kB / 403.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.09565, allocations: 0 / 403.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01482/0.1105, allocations: 5.135 MB / 408.2 MB, free: 2.758 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/0.1107, allocations: 247.8 kB / 408.4 MB, free: 2.496 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/1.836, allocations: 3.953 kB / 408.4 MB, free: 2.492 MB / 302.1 MB (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)