Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.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.TestSimulatedADC,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC",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.0009962/0.0009961, allocations: 175.4 kB / 16.11 MB, free: 5.691 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.443/1.443, allocations: 205 MB / 221.9 MB, free: 9.152 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.0007503/0.0007502, allocations: 84.31 kB / 269.9 MB, free: 8.676 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.06972/0.06972, allocations: 12.58 MB / 330.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004002/0.0004002, allocations: 19.98 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09728/0.09769, allocations: 49.97 MB / 441.1 MB, free: 16.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC): time 0.002334/0.1001, allocations: 1.982 MB / 443.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001589/0.1017, allocations: 0.8697 MB / 444 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003424/0.1021, allocations: 4 kB / 444 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002388/0.1023, allocations: 35.66 kB / 444 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.1025, allocations: 31.73 kB / 444.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006964/0.1032, allocations: 195.7 kB / 444.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003651/0.1036, allocations: 295.2 kB / 444.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/0.1039, allocations: 136.8 kB / 444.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.1041, allocations: 79.45 kB / 444.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.1043, allocations: 83.42 kB / 444.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.362e-05/0.1043, allocations: 12 kB / 444.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.1045, allocations: 39.97 kB / 444.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.476e-05/0.1046, allocations: 47.7 kB / 444.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.594e-05/0.1047, allocations: 95.28 kB / 445 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002885/0.105, allocations: 291.1 kB / 445.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.105, allocations: 0 / 445.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.105, allocations: 0 / 445.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.105, allocations: 0 / 445.3 MB, free: 12.11 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008499/0.1058, allocations: 0.5455 MB / 445.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.1059, allocations: 12.03 kB / 445.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.945e-05/0.106, allocations: 50.73 kB / 445.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.23e-05/0.1061, allocations: 32.56 kB / 445.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.1064, allocations: 299.1 kB / 446.2 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.1064, allocations: 20.81 kB / 446.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/0.1065, allocations: 24.12 kB / 446.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.1075, allocations: 0.6622 MB / 446.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.1075, allocations: 4 kB / 446.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.1076, allocations: 8 kB / 447 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.1076, allocations: 4 kB / 447 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003714/0.1079, allocations: 188.2 kB / 447.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006166/0.1086, allocations: 0.5413 MB / 447.7 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007543/0.1093, allocations: 0.579 MB / 448.3 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003089/0.1097, allocations: 244.3 kB / 448.5 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005016/0.1102, allocations: 0.5934 MB / 449.1 MB, free: 7.906 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.1102, allocations: 38.56 kB / 449.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.124e-06/0.1102, allocations: 0 / 449.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.0008675/0.1111, allocations: 487.5 kB / 449.6 MB, free: 7.379 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.737e-05/0.1112, allocations: 207.9 kB / 449.8 MB, free: 7.133 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001886/0.1114, allocations: 237 kB / 450 MB, free: 6.895 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.1114, allocations: 29.7 kB / 450.1 MB, free: 6.859 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.204e-05/0.1115, allocations: 137 kB / 450.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.554e-05/0.1115, allocations: 39.8 kB / 450.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.944e-05/0.1116, allocations: 41.69 kB / 450.3 MB, free: 6.637 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.307e-05/0.1116, allocations: 338.8 kB / 450.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.1117, allocations: 64.83 kB / 450.7 MB, free: 6.234 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.112, allocations: 344 kB / 451 MB, free: 5.762 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.1123, allocations: 424.4 kB / 451.4 MB, free: 5.215 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.1124, allocations: 4 kB / 451.4 MB, free: 5.211 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004995/0.1129, allocations: 397 kB / 451.8 MB, free: 4.816 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1129, allocations: 11.98 kB / 451.8 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.1129, allocations: 8 kB / 451.8 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.1129, allocations: 19.94 kB / 451.9 MB, free: 4.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.1132, allocations: 84.53 kB / 451.9 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.1132, allocations: 31.8 kB / 452 MB, free: 4.664 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.1134, allocations: 31.84 kB / 452 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.1134, allocations: 31.94 kB / 452 MB, free: 4.602 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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 0.0001437/0.1136, allocations: 174.5 kB / 452.2 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004848/0.114, allocations: 322.1 kB / 452.5 MB, free: 4.102 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005284/0.1146, allocations: 344.2 kB / 452.9 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.1146, allocations: 8 kB / 452.9 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1146, allocations: 3.938 kB / 452.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1146, allocations: 0 / 452.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002499/0.1149, allocations: 305.2 kB / 453.2 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.1149, allocations: 0 / 453.2 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.1151, allocations: 87.88 kB / 453.2 MB, free: 3.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1152, allocations: 4.234 kB / 453.3 MB, free: 3.309 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.1152, allocations: 12 kB / 453.3 MB, free: 3.297 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.1152, allocations: 0 / 453.3 MB, free: 3.297 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1152, allocations: 11.88 kB / 453.3 MB, free: 3.285 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000573/0.1158, allocations: 0.5427 MB / 453.8 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-05/0.1158, allocations: 112.6 kB / 453.9 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.1159, allocations: 12 kB / 453.9 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.1161, allocations: 27.97 kB / 454 MB, free: 2.551 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.886e-05/0.1161, allocations: 11.88 kB / 454 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.1162, allocations: 12 kB / 454 MB, free: 2.527 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000182/0.1164, allocations: 176.5 kB / 454.2 MB, free: 2.355 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1164, allocations: 0 / 454.2 MB, free: 2.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004132/0.1168, allocations: 56 kB / 454.2 MB, free: 2.301 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001096/0.1179, allocations: 1.265 MB / 455.5 MB, free: 1.004 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004604/0.1184, allocations: 298 kB / 455.8 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.1184, allocations: 4.062 kB / 455.8 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.943e-05/0.1184, allocations: 15.98 kB / 455.8 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008113/0.1192, allocations: 273.8 kB / 456.1 MB, free: 428 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.1221, allocations: 1.796 MB / 457.9 MB, free: 14.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/0.1225, allocations: 0.7839 MB / 458.6 MB, free: 13.63 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.1226, allocations: 30.97 kB / 458.7 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.1228, allocations: 95.39 kB / 458.8 MB, free: 13.51 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.1228, allocations: 0 / 458.8 MB, free: 13.51 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.1416, allocations: 6.214 MB / 465 MB, free: 7.285 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002247/0.1418, allocations: 223.8 kB / 465.2 MB, free: 7.023 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/2.324, allocations: 0 / 465.2 MB, free: 7.023 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestSimulatedADC.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe 2>&1)