Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 107.6 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 192 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009776/0.0009776, allocations: 43.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3149, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004257/0.3192, allocations: 2.683 MB / 402.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.321, allocations: 0.9153 MB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003133/0.3214, allocations: 11.94 kB / 403.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002486/0.3216, allocations: 55.39 kB / 403.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.3219, allocations: 63.44 kB / 403.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007318/0.3227, allocations: 241.8 kB / 404.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004566/0.3232, allocations: 375 kB / 404.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003193/0.3235, allocations: 192.8 kB / 404.7 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.3237, allocations: 135.4 kB / 404.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.3239, allocations: 147.2 kB / 405 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.816e-05/0.3239, allocations: 32 kB / 405 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.3241, allocations: 75.89 kB / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.3242, allocations: 75.75 kB / 405.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001395/0.3243, allocations: 163.1 kB / 405.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.3248, allocations: 416.1 kB / 405.8 MB, free: 3.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3248, allocations: 3.938 kB / 405.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3248, allocations: 8 kB / 405.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.3248, allocations: 0 / 405.8 MB, free: 3.25 MB / 318.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.001083/0.3259, allocations: 0.6274 MB / 406.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.326, allocations: 12.03 kB / 406.4 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.32e-05/0.3261, allocations: 66.72 kB / 406.5 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.041e-05/0.3261, allocations: 44.47 kB / 406.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.3266, allocations: 335.9 kB / 406.8 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.3266, allocations: 20.94 kB / 406.9 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.3267, allocations: 32.12 kB / 406.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.3281, allocations: 0.7405 MB / 407.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.3281, allocations: 4 kB / 407.6 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.3281, allocations: 15.94 kB / 407.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.3282, allocations: 8 kB / 407.7 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005767/0.3287, allocations: 211.8 kB / 407.9 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009107/0.3297, allocations: 0.7682 MB / 408.6 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.3308, allocations: 0.6228 MB / 409.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004912/0.3313, allocations: 279.5 kB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006255/0.332, allocations: 0.5973 MB / 410.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.332, allocations: 34.56 kB / 410.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 2.034e-06/0.332, allocations: 4 kB / 410.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001235/0.3333, allocations: 0.5174 MB / 410.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/0.3334, allocations: 215.6 kB / 410.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.3337, allocations: 250.6 kB / 411.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.3337, allocations: 33.7 kB / 411.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3338, allocations: 148.8 kB / 411.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.721e-05/0.3339, allocations: 51.62 kB / 411.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.334, allocations: 82.48 kB / 411.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3342, allocations: 354.7 kB / 411.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.3344, allocations: 89.06 kB / 411.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004234/0.3348, allocations: 435 kB / 412.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006511/0.3355, allocations: 0.5203 MB / 412.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/0.3355, allocations: 8 kB / 412.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007912/0.3363, allocations: 0.4892 MB / 413.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.3363, allocations: 12 kB / 413.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.3364, allocations: 12 kB / 413.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.3364, allocations: 16 kB / 413.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003042/0.3367, allocations: 119.8 kB / 413.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.947e-05/0.3367, allocations: 20.45 kB / 413.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.337, allocations: 59.58 kB / 413.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/0.337, allocations: 28 kB / 413.6 MB, free: 10.57 MB / 334.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.0001877/0.3372, allocations: 201.1 kB / 413.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006367/0.3379, allocations: 338.1 kB / 414.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006795/0.3386, allocations: 361.2 kB / 414.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3386, allocations: 8.469 kB / 414.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.3386, allocations: 4 kB / 414.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.3386, allocations: 3.984 kB / 414.5 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004388/0.3391, allocations: 337 kB / 414.8 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.3391, allocations: 4 kB / 414.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/0.3395, allocations: 103.8 kB / 414.9 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.3395, allocations: 8 kB / 414.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.3396, allocations: 23.91 kB / 414.9 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.3396, allocations: 0 / 414.9 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3396, allocations: 7.938 kB / 415 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001601/0.3412, allocations: 0.7708 MB / 415.7 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.065e-05/0.3413, allocations: 112.6 kB / 415.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.663e-05/0.3414, allocations: 15.98 kB / 415.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002577/0.3416, allocations: 27.92 kB / 415.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.3417, allocations: 12.05 kB / 415.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.383e-05/0.3417, allocations: 16 kB / 415.9 MB, free: 8.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001903/0.3419, allocations: 182 kB / 416.1 MB, free: 7.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3419, allocations: 0 / 416.1 MB, free: 7.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005332/0.3425, allocations: 75.91 kB / 416.2 MB, free: 7.883 MB / 334.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.001705/0.3442, allocations: 1.348 MB / 417.5 MB, free: 6.504 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007417/0.3449, allocations: 353 kB / 417.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3449, allocations: 0 / 417.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.3451, allocations: 27.97 kB / 417.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.3461, allocations: 318.8 kB / 418.2 MB, free: 5.816 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005029/0.3512, allocations: 3.799 MB / 422 MB, free: 1.598 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.3516, allocations: 0.8158 MB / 422.8 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.3517, allocations: 35.28 kB / 422.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.3519, allocations: 115.3 kB / 422.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3519, allocations: 0 / 422.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02713/0.379, allocations: 8.042 MB / 431 MB, free: 8.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.183/8.562, allocations: 14.56 kB / 431 MB, free: 8.727 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_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