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.001348/0.001347, 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.001398/0.001399, 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.395/1.395, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 59.56 kB / 307 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1036, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.005137/0.1088, allocations: 2.686 MB / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002213/0.111, allocations: 0.9505 MB / 361.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003897/0.1115, allocations: 11.94 kB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003136/0.1118, allocations: 55.39 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005065/0.1124, allocations: 63.45 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.1135, allocations: 239.4 kB / 361.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006644/0.1141, allocations: 378.9 kB / 361.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004929/0.1146, allocations: 192.7 kB / 362.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002827/0.1149, allocations: 139.4 kB / 362.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003144/0.1152, allocations: 143.2 kB / 362.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.641e-05/0.1154, allocations: 39.94 kB / 362.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.1155, allocations: 75.89 kB / 362.5 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.1157, allocations: 75.75 kB / 362.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002271/0.116, allocations: 163.1 kB / 362.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006978/0.1167, allocations: 402.8 kB / 363.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1167, allocations: 0 / 363.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1167, allocations: 0 / 363.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.056e-05/0.1167, allocations: 4 kB / 363.2 MB, free: 8.398 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.001368/0.1181, allocations: 0.6352 MB / 363.8 MB, free: 7.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.1181, allocations: 12.03 kB / 363.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.605e-05/0.1182, allocations: 66.72 kB / 363.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.1183, allocations: 40.47 kB / 363.9 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004745/0.1188, allocations: 323.9 kB / 364.2 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.1189, allocations: 20.94 kB / 364.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.535e-05/0.1189, allocations: 28.12 kB / 364.3 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.1204, allocations: 0.7442 MB / 365 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.1205, allocations: 3.938 kB / 365 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.342e-05/0.1205, allocations: 12 kB / 365 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.1205, allocations: 4 kB / 365 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000616/0.1211, allocations: 215.8 kB / 365.2 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.1223, allocations: 0.7839 MB / 366 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.1235, allocations: 0.6222 MB / 366.6 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004694/0.124, allocations: 259.3 kB / 366.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007603/0.1248, allocations: 0.5934 MB / 367.5 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.1248, allocations: 42.34 kB / 367.5 MB, free: 3.574 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.705e-06/0.1248, allocations: 0 / 367.5 MB, free: 3.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001241/0.1261, allocations: 0.525 MB / 368.1 MB, free: 3.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.1262, allocations: 207.9 kB / 368.3 MB, free: 2.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.1265, allocations: 254.8 kB / 368.5 MB, free: 2.543 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.1265, allocations: 33.7 kB / 368.5 MB, free: 2.504 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.1266, allocations: 152.7 kB / 368.7 MB, free: 2.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.285e-05/0.1267, allocations: 55.58 kB / 368.7 MB, free: 2.297 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-05/0.1268, allocations: 78.25 kB / 368.8 MB, free: 2.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1269, allocations: 346.8 kB / 369.2 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.1271, allocations: 89.06 kB / 369.3 MB, free: 1.777 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003826/0.1275, allocations: 434.9 kB / 369.7 MB, free: 1.184 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005902/0.1281, allocations: 0.5242 MB / 370.2 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.1281, allocations: 4 kB / 370.2 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.1489/0.277, allocations: 499.5 kB / 370.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.2771, allocations: 13.72 kB / 370.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/0.2771, allocations: 11.34 kB / 370.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.245e-05/0.2771, allocations: 19.61 kB / 370.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004044/0.2775, allocations: 120.1 kB / 370.9 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.524e-05/0.2776, allocations: 24.45 kB / 370.9 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003556/0.2779, allocations: 50.83 kB / 370.9 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.278, allocations: 30.12 kB / 371 MB, free: 19.8 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.0002413/0.2782, allocations: 197.4 kB / 371.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006997/0.2789, allocations: 349.7 kB / 371.5 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006891/0.2796, allocations: 358.3 kB / 371.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.2797, allocations: 5.688 kB / 371.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.2797, allocations: 5.594 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.2797, allocations: 3.938 kB / 371.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003665/0.2801, allocations: 342.5 kB / 372.2 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.2801, allocations: 1.375 kB / 372.2 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003999/0.2805, allocations: 99.86 kB / 372.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.2805, allocations: 3.281 kB / 372.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.2805, allocations: 11.64 kB / 372.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.2805, allocations: 4.484 kB / 372.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2806, allocations: 3.781 kB / 372.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.2818, allocations: 0.7779 MB / 373.1 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.924e-05/0.2819, allocations: 121.5 kB / 373.2 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.481e-05/0.2819, allocations: 16.84 kB / 373.2 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.2822, allocations: 27.41 kB / 373.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/0.2822, allocations: 7.219 kB / 373.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.2823, allocations: 13.81 kB / 373.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001874/0.2824, allocations: 181.8 kB / 373.4 MB, free: 18.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2825, allocations: 1.156 kB / 373.5 MB, free: 18.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005561/0.283, allocations: 76.44 kB / 373.5 MB, free: 18.97 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.001438/0.2845, allocations: 1.341 MB / 374.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008589/0.2853, allocations: 388.3 kB / 375.2 MB, free: 17.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2853, allocations: 1.375 kB / 375.2 MB, free: 17.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.2855, allocations: 30.38 kB / 375.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.2865, allocations: 309.4 kB / 375.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004027/0.2905, allocations: 3.84 MB / 379.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.2908, allocations: 0.8105 MB / 380.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001238/0.2909, allocations: 39.08 kB / 380.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.2911, allocations: 114.5 kB / 380.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2911, allocations: 5.5 kB / 380.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.3208, allocations: 7.914 MB / 388.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.172/8.493, allocations: 16.27 kB / 388.3 MB, free: 11.96 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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) "Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w