Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.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.TestClockedRealToSquare,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare",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.001685/0.001684, allocations: 184.9 kB / 15.81 MB, free: 6.348 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.26/2.26, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001142/0.001142, allocations: 90.88 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1024/0.1024, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000559/0.0005591, allocations: 13.88 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1012, allocations: 50.38 MB / 442.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare): time 0.001888/0.1031, allocations: 1.236 MB / 443.7 MB, free: 9.605 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008852/0.1041, allocations: 469.3 kB / 444.2 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.67e-05/0.1042, allocations: 0 / 444.2 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.417e-05/0.1042, allocations: 7.922 kB / 444.2 MB, free: 9.133 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.624e-05/0.1043, allocations: 7.938 kB / 444.2 MB, free: 9.125 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003377/0.1046, allocations: 33.64 kB / 444.2 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.282e-05/0.1047, allocations: 27.97 kB / 444.2 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.887e-05/0.1048, allocations: 15.98 kB / 444.3 MB, free: 9.051 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.49e-05/0.1049, allocations: 15.92 kB / 444.3 MB, free: 9.035 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.426e-05/0.105, allocations: 19.86 kB / 444.3 MB, free: 9.016 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.105, allocations: 4 kB / 444.3 MB, free: 9.012 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.36e-05/0.1051, allocations: 0 / 444.3 MB, free: 9.012 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.1051, allocations: 4 kB / 444.3 MB, free: 9.008 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.264e-05/0.1051, allocations: 33.64 kB / 444.3 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.602e-05/0.1052, allocations: 32.48 kB / 444.4 MB, free: 8.938 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1052, allocations: 0 / 444.4 MB, free: 8.938 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1052, allocations: 7.938 kB / 444.4 MB, free: 8.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1052, allocations: 0 / 444.4 MB, free: 8.93 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004627/0.1057, allocations: 347.5 kB / 444.7 MB, free: 8.543 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.1058, allocations: 12.02 kB / 444.7 MB, free: 8.531 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.71e-05/0.1058, allocations: 34.56 kB / 444.8 MB, free: 8.488 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.215e-05/0.1059, allocations: 11.91 kB / 444.8 MB, free: 8.477 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.106, allocations: 175 kB / 444.9 MB, free: 8.266 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-06/0.1061, allocations: 7.938 kB / 445 MB, free: 8.258 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.1061, allocations: 8 kB / 445 MB, free: 8.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.1064, allocations: 125.9 kB / 445.1 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1065, allocations: 0 / 445.1 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.1065, allocations: 0 / 445.1 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1065, allocations: 4 kB / 445.1 MB, free: 8.102 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.1066, allocations: 31.92 kB / 445.1 MB, free: 8.07 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003229/0.107, allocations: 262.7 kB / 445.4 MB, free: 7.758 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.1072, allocations: 164.9 kB / 445.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.1073, allocations: 12.11 kB / 445.5 MB, free: 7.539 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.1073, allocations: 34.5 kB / 445.6 MB, free: 7.496 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 1.723e-06/0.1073, allocations: 4 kB / 445.6 MB, free: 7.492 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003783/0.1077, allocations: 105.6 kB / 445.7 MB, free: 7.383 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.1078, allocations: 106.8 kB / 445.8 MB, free: 7.254 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.511e-05/0.1079, allocations: 113.8 kB / 445.9 MB, free: 7.133 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.1079, allocations: 29.95 kB / 445.9 MB, free: 7.098 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.518e-05/0.1079, allocations: 84.14 kB / 446 MB, free: 7.012 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.108, allocations: 7.906 kB / 446 MB, free: 7.004 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-06/0.108, allocations: 0 / 446 MB, free: 7.004 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.168e-05/0.108, allocations: 322.8 kB / 446.3 MB, free: 6.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.751e-05/0.1081, allocations: 23.92 kB / 446.4 MB, free: 6.656 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.761e-05/0.1082, allocations: 48.28 kB / 446.4 MB, free: 6.594 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.726e-05/0.1083, allocations: 16 kB / 446.4 MB, free: 6.578 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1083, allocations: 0 / 446.4 MB, free: 6.578 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002323/0.1086, allocations: 97.45 kB / 446.5 MB, free: 6.477 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.1086, allocations: 4 kB / 446.5 MB, free: 6.473 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.1086, allocations: 4 kB / 446.5 MB, free: 6.469 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.1086, allocations: 3.984 kB / 446.5 MB, free: 6.465 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.1088, allocations: 11.94 kB / 446.5 MB, free: 6.453 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.1088, allocations: 8 kB / 446.6 MB, free: 6.445 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.326e-05/0.1089, allocations: 7.938 kB / 446.6 MB, free: 6.438 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.1089, allocations: 3.984 kB / 446.6 MB, free: 6.434 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (ClockedRealToSquare.y2,$CLKPRE.ClockedRealToSquare.y2,ClockedRealToSquare.y) * Number of discrete states: 0 () * Number of clocked states: 1 (ClockedRealToSquare.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.205e-05/0.109, allocations: 129.6 kB / 446.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.159e-05/0.1091, allocations: 53.59 kB / 446.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.817e-05/0.1091, allocations: 7.906 kB / 446.8 MB, free: 6.227 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1092, allocations: 4 kB / 446.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.1092, allocations: 0 / 446.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1092, allocations: 0 / 446.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.1094, allocations: 169.6 kB / 446.9 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.1094, allocations: 0 / 446.9 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.1095, allocations: 12.36 kB / 446.9 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/0.1096, allocations: 8 kB / 446.9 MB, free: 5.988 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.1096, allocations: 0 / 446.9 MB, free: 5.988 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1096, allocations: 0 / 446.9 MB, free: 5.988 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1096, allocations: 11.88 kB / 447 MB, free: 5.977 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002509/0.1099, allocations: 208.6 kB / 447.2 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-05/0.1099, allocations: 81.02 kB / 447.2 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.511e-05/0.1099, allocations: 11.98 kB / 447.2 MB, free: 5.629 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.1101, allocations: 0 / 447.2 MB, free: 5.629 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.1101, allocations: 4 kB / 447.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.1101, allocations: 0 / 447.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.703e-05/0.1102, allocations: 95.22 kB / 447.3 MB, free: 5.531 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1102, allocations: 4 kB / 447.3 MB, free: 5.527 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003248/0.1105, allocations: 8 kB / 447.4 MB, free: 5.52 MB / 282.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: 2 (ClockedRealToSquare.y,ClockedRealToSquare.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (ClockedRealToSquare.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005679/0.1111, allocations: 0.9018 MB / 448.3 MB, free: 4.578 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002206/0.1113, allocations: 47.91 kB / 448.3 MB, free: 4.531 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1114, allocations: 0 / 448.3 MB, free: 4.531 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.543e-05/0.1114, allocations: 20.31 kB / 448.3 MB, free: 4.512 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.1117, allocations: 31.95 kB / 448.4 MB, free: 4.484 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.1128, allocations: 1.104 MB / 449.5 MB, free: 3.312 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001485/0.1129, allocations: 0.6926 MB / 450.2 MB, free: 2.594 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.358e-05/0.113, allocations: 4 kB / 450.2 MB, free: 2.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.413e-05/0.1131, allocations: 19.42 kB / 450.2 MB, free: 2.57 MB / 282.7 MB Notification: Performance of SimCode: time 9.81e-07/0.1131, allocations: 0 / 450.2 MB, free: 2.57 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.1325, allocations: 1.326 MB / 451.5 MB, free: 1.254 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002775/0.1328, allocations: 198.3 kB / 451.7 MB, free: 1.02 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.48/2.613, allocations: 0 / 451.7 MB, free: 1.02 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe 2>&1)