Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001504/0.001504, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002271/0.002272, allocations: 63.33 kB / 307 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1269, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004678/0.1316, allocations: 2.678 MB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.1337, allocations: 0.9466 MB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003716/0.1342, allocations: 11.94 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000295/0.1345, allocations: 63.38 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003625/0.1349, allocations: 63.45 kB / 361.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008413/0.1357, allocations: 235.4 kB / 361.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004804/0.1362, allocations: 382.9 kB / 361.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003637/0.1366, allocations: 196.7 kB / 362.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001977/0.1368, allocations: 135.4 kB / 362.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.137, allocations: 147.2 kB / 362.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.703e-05/0.1371, allocations: 32 kB / 362.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.1372, allocations: 71.95 kB / 362.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.1374, allocations: 83.69 kB / 362.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001941/0.1376, allocations: 163 kB / 362.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000578/0.1382, allocations: 406.9 kB / 363.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1382, allocations: 0 / 363.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1382, allocations: 0 / 363.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.1382, allocations: 0 / 363.1 MB, free: 8.375 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001295/0.1395, allocations: 0.6352 MB / 363.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.1396, allocations: 8.031 kB / 363.8 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.986e-05/0.1396, allocations: 74.72 kB / 363.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.1398, allocations: 40.47 kB / 363.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004364/0.1402, allocations: 319.9 kB / 364.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.332e-05/0.1402, allocations: 20.94 kB / 364.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/0.1403, allocations: 36.12 kB / 364.3 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.1417, allocations: 0.7364 MB / 365 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.1417, allocations: 0 / 365 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.315e-05/0.1418, allocations: 16 kB / 365 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1418, allocations: 8 kB / 365 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005752/0.1424, allocations: 218.6 kB / 365.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008704/0.1432, allocations: 0.776 MB / 366 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.1443, allocations: 0.6223 MB / 366.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/0.1449, allocations: 271.3 kB / 366.9 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007251/0.1456, allocations: 0.5934 MB / 367.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.1456, allocations: 42.34 kB / 367.5 MB, free: 3.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.554e-06/0.1457, allocations: 0 / 367.5 MB, free: 3.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001269/0.1469, allocations: 0.5172 MB / 368.1 MB, free: 3.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001816/0.1471, allocations: 211.9 kB / 368.3 MB, free: 2.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.1474, allocations: 246.6 kB / 368.5 MB, free: 2.523 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.454e-05/0.1475, allocations: 37.7 kB / 368.5 MB, free: 2.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.1476, allocations: 160.6 kB / 368.7 MB, free: 2.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.917e-05/0.1477, allocations: 43.59 kB / 368.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.1478, allocations: 86.38 kB / 368.8 MB, free: 2.188 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.148, allocations: 346.8 kB / 369.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002092/0.1482, allocations: 85.06 kB / 369.2 MB, free: 1.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004689/0.1487, allocations: 435 kB / 369.7 MB, free: 1.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007241/0.1494, allocations: 0.5242 MB / 370.2 MB, free: 484 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.138e-05/0.1495, allocations: 4 kB / 370.2 MB, free: 480 kB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.1692/0.3187, allocations: 497.1 kB / 370.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.3187, allocations: 10.36 kB / 370.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.696e-05/0.3188, allocations: 11.56 kB / 370.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.934e-05/0.3188, allocations: 23.27 kB / 370.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004163/0.3192, allocations: 120.3 kB / 370.8 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.736e-05/0.3193, allocations: 27.64 kB / 370.9 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.3196, allocations: 52.5 kB / 370.9 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.133e-05/0.3197, allocations: 27.16 kB / 371 MB, free: 19.83 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0002666/0.32, allocations: 196 kB / 371.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007191/0.3207, allocations: 342.7 kB / 371.5 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007314/0.3214, allocations: 364.3 kB / 371.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.998e-06/0.3215, allocations: 4.812 kB / 371.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3215, allocations: 1.281 kB / 371.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.3215, allocations: 5.188 kB / 371.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004453/0.3219, allocations: 343.6 kB / 372.2 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.3219, allocations: 3.531 kB / 372.2 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004183/0.3224, allocations: 103.3 kB / 372.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.3224, allocations: 2.688 kB / 372.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.3224, allocations: 15.2 kB / 372.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.3224, allocations: 2.75 kB / 372.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3224, allocations: 1.531 kB / 372.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.3237, allocations: 0.7754 MB / 373.1 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.319e-05/0.3238, allocations: 125.7 kB / 373.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.882e-05/0.3239, allocations: 12.58 kB / 373.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.3242, allocations: 27.53 kB / 373.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.3242, allocations: 8.531 kB / 373.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.3243, allocations: 17.95 kB / 373.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002061/0.3245, allocations: 180.3 kB / 373.4 MB, free: 19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3245, allocations: 0 / 373.4 MB, free: 19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006022/0.3251, allocations: 75.23 kB / 373.5 MB, free: 19 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * 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: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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.001567/0.3267, allocations: 1.343 MB / 374.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000857/0.3275, allocations: 388.9 kB / 375.2 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3275, allocations: 0 / 375.2 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.3277, allocations: 28.25 kB / 375.3 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009933/0.3287, allocations: 307.6 kB / 375.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004519/0.3332, allocations: 3.84 MB / 379.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.3335, allocations: 0.8161 MB / 380.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001854/0.3337, allocations: 36.81 kB / 380.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.3339, allocations: 116.5 kB / 380.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3339, allocations: 4 kB / 380.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03628/0.3702, allocations: 7.92 MB / 388.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.325/8.695, allocations: 18.61 kB / 388.3 MB, free: 11.97 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches