Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001174/0.001174, allocations: 170.1 kB / 16.14 MB, free: 5.652 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.4 MB / 222.3 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009023/0.0009022, allocations: 86.38 kB / 270.7 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08827/0.08827, allocations: 12.6 MB / 331.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004064, allocations: 12 kB / 392.8 MB, free: 65.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.0975, allocations: 50.37 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample): time 0.001755/0.0993, allocations: 1.4 MB / 444.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007391/0.1001, allocations: 499.7 kB / 445 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.1002, allocations: 0 / 445 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.729e-05/0.1002, allocations: 7.922 kB / 445 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.961e-05/0.1003, allocations: 15.88 kB / 445.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.1007, allocations: 35.97 kB / 445.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.1008, allocations: 67.66 kB / 445.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.1009, allocations: 31.97 kB / 445.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.423e-05/0.101, allocations: 23.92 kB / 445.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.409e-05/0.1011, allocations: 27.8 kB / 445.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.14e-05/0.1011, allocations: 4 kB / 445.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.322e-05/0.1011, allocations: 4 kB / 445.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.22e-05/0.1012, allocations: 7.922 kB / 445.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.752e-05/0.1012, allocations: 61.44 kB / 445.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.795e-05/0.1013, allocations: 63.94 kB / 445.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1013, allocations: 0 / 445.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1013, allocations: 0 / 445.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1013, allocations: 0 / 445.4 MB, free: 13.07 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004057/0.1017, allocations: 375.2 kB / 445.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1018, allocations: 12.03 kB / 445.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.168e-05/0.1018, allocations: 34.73 kB / 445.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.926e-05/0.1019, allocations: 8.844 kB / 445.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001712/0.102, allocations: 204.1 kB / 446 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.1021, allocations: 384 / 446 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.1021, allocations: 4.375 kB / 446 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.1024, allocations: 177.9 kB / 446.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1025, allocations: 0 / 446.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.1025, allocations: 4 kB / 446.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1025, allocations: 0 / 446.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.1026, allocations: 43.91 kB / 446.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002654/0.1029, allocations: 278.6 kB / 446.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.1031, allocations: 185 kB / 446.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.099e-05/0.1032, allocations: 58.48 kB / 446.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.1033, allocations: 4 kB / 446.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.829e-05/0.1033, allocations: 38.53 kB / 446.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.1033, allocations: 3.938 kB / 446.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002994/0.1036, allocations: 129.5 kB / 446.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.1037, allocations: 110.8 kB / 447 MB, free: 11.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.256e-05/0.1037, allocations: 131.5 kB / 447.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.1038, allocations: 25.7 kB / 447.2 MB, free: 11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.798e-05/0.1038, allocations: 92.27 kB / 447.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.1038, allocations: 7.906 kB / 447.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.1038, allocations: 0 / 447.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.914e-05/0.1039, allocations: 326.8 kB / 447.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.527e-05/0.1039, allocations: 15.98 kB / 447.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.689e-05/0.104, allocations: 75.66 kB / 447.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.1041, allocations: 95.59 kB / 447.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.1041, allocations: 0 / 447.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000164/0.1043, allocations: 113.4 kB / 447.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1043, allocations: 8 kB / 447.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1043, allocations: 0 / 447.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.1044, allocations: 4 kB / 447.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.179e-05/0.1045, allocations: 19.94 kB / 447.9 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.1045, allocations: 3.984 kB / 447.9 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.529e-05/0.1045, allocations: 16.22 kB / 447.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.1046, allocations: 4.25 kB / 447.9 MB, free: 10.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (9): * Single equations (assignments): 9 * 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 6.976e-05/0.1046, allocations: 125.7 kB / 448 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-05/0.1047, allocations: 77.59 kB / 448.1 MB, free: 9.945 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.292e-05/0.1048, allocations: 12.3 kB / 448.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.1048, allocations: 4 kB / 448.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1048, allocations: 0 / 448.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1048, allocations: 0 / 448.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001371/0.1049, allocations: 181.6 kB / 448.3 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.105, allocations: 0 / 448.3 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.009e-05/0.105, allocations: 27.92 kB / 448.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.1051, allocations: 0 / 448.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.1051, allocations: 4 kB / 448.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1051, allocations: 0 / 448.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1051, allocations: 0 / 448.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00018/0.1053, allocations: 213 kB / 448.6 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.635e-05/0.1053, allocations: 92.94 kB / 448.6 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.1053, allocations: 3.938 kB / 448.7 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.006e-05/0.1054, allocations: 8 kB / 448.7 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.394e-05/0.1054, allocations: 0 / 448.7 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.1054, allocations: 4 kB / 448.7 MB, free: 9.316 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.314e-05/0.1055, allocations: 103.8 kB / 448.8 MB, free: 9.215 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1055, allocations: 0 / 448.8 MB, free: 9.215 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002235/0.1057, allocations: 20.19 kB / 448.8 MB, free: 9.195 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (9): * Single equations (assignments): 9 * 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 Backend phase and start with SimCode phase: time 0.0003521/0.1061, allocations: 0.7451 MB / 449.5 MB, free: 8.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001734/0.1063, allocations: 59.91 kB / 449.6 MB, free: 8.359 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1063, allocations: 0 / 449.6 MB, free: 8.359 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.621e-05/0.1063, allocations: 11.98 kB / 449.6 MB, free: 8.348 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/0.1067, allocations: 44.95 kB / 449.6 MB, free: 8.305 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.1079, allocations: 1.566 MB / 451.2 MB, free: 6.594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.108, allocations: 0.6926 MB / 451.9 MB, free: 5.875 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.89e-05/0.1081, allocations: 12.53 kB / 451.9 MB, free: 5.863 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.427e-05/0.1081, allocations: 19.44 kB / 451.9 MB, free: 5.848 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.1081, allocations: 0 / 451.9 MB, free: 5.848 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01196/0.1201, allocations: 1.898 MB / 453.8 MB, free: 3.941 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/0.1203, allocations: 222.2 kB / 454 MB, free: 3.68 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.592/1.712, allocations: 0 / 454 MB, free: 3.68 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe 2>&1)