Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.001428/0.001428, allocations: 106.2 kB / 17.06 MB, free: 6.098 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.001453/0.001453, allocations: 200.1 kB / 18 MB, free: 5.168 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.541/1.541, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3098, allocations: 49.42 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003898/0.3137, allocations: 2.002 MB / 402.2 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.3148, allocations: 0.5103 MB / 402.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.3149, allocations: 0 / 402.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.3151, allocations: 19.8 kB / 402.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.613e-05/0.3152, allocations: 23.72 kB / 402.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.3155, allocations: 63.86 kB / 402.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001862/0.3157, allocations: 115.6 kB / 402.9 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.3159, allocations: 53.41 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.725e-05/0.316, allocations: 47.86 kB / 403 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.661e-05/0.3161, allocations: 55.7 kB / 403.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.3161, allocations: 11.94 kB / 403.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.321e-05/0.3162, allocations: 12 kB / 403.1 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.903e-05/0.3162, allocations: 31.91 kB / 403.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.43e-05/0.3163, allocations: 59.67 kB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002272/0.3165, allocations: 118.5 kB / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.3166, allocations: 0 / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3166, allocations: 0 / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.3166, allocations: 0 / 403.3 MB, free: 5.684 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007076/0.3173, allocations: 430.9 kB / 403.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.3173, allocations: 15.89 kB / 403.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.489e-05/0.3174, allocations: 46.75 kB / 403.8 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/0.3175, allocations: 24.83 kB / 403.8 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.3178, allocations: 204.1 kB / 404 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.3178, allocations: 8.375 kB / 404 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.3178, allocations: 12.38 kB / 404 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005399/0.3184, allocations: 249.1 kB / 404.3 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.3184, allocations: 3.953 kB / 404.3 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.3184, allocations: 8 kB / 404.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3184, allocations: 0 / 404.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00027/0.3187, allocations: 87.86 kB / 404.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008064/0.3195, allocations: 0.592 MB / 405 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003118/0.3199, allocations: 147.9 kB / 405.1 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.32, allocations: 78.56 kB / 405.2 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/0.3201, allocations: 0 / 405.2 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.3201, allocations: 42.56 kB / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.634e-06/0.3201, allocations: 0 / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005649/0.3207, allocations: 181.3 kB / 405.4 MB, free: 3.344 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.542e-05/0.3208, allocations: 106.8 kB / 405.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.3209, allocations: 134.2 kB / 405.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.321, allocations: 25.7 kB / 405.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.179e-05/0.3211, allocations: 116.1 kB / 405.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.3211, allocations: 35.77 kB / 405.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.533e-05/0.3212, allocations: 29.7 kB / 405.9 MB, free: 2.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.3213, allocations: 322.8 kB / 406.2 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.3214, allocations: 35.97 kB / 406.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.3217, allocations: 128.8 kB / 406.3 MB, free: 2.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.322, allocations: 176.7 kB / 406.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.322, allocations: 0 / 406.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003982/0.3224, allocations: 189.2 kB / 406.7 MB, free: 1.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3225, allocations: 8 kB / 406.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.3225, allocations: 7.938 kB / 406.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.3225, allocations: 4.438 kB / 406.7 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.3227, allocations: 47.92 kB / 406.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.3227, allocations: 11.98 kB / 406.8 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.3228, allocations: 15.89 kB / 406.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.3228, allocations: 15.94 kB / 406.8 MB, free: 1.801 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001145/0.323, allocations: 125.8 kB / 406.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.3231, allocations: 89.84 kB / 407 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.692e-05/0.3232, allocations: 24.64 kB / 407 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3232, allocations: 4 kB / 407 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3232, allocations: 4 kB / 407 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3232, allocations: 0 / 407 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003012/0.3235, allocations: 197.6 kB / 407.2 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3235, allocations: 0 / 407.2 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.3237, allocations: 35.92 kB / 407.3 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.3237, allocations: 0 / 407.3 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.3238, allocations: 19.86 kB / 407.3 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.3238, allocations: 0 / 407.3 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3238, allocations: 0 / 407.3 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005851/0.3244, allocations: 379.5 kB / 407.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.3244, allocations: 89.03 kB / 407.7 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.628e-05/0.3245, allocations: 3.938 kB / 407.7 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.3246, allocations: 12.05 kB / 407.8 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.964e-05/0.3247, allocations: 8 kB / 407.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.3247, allocations: 7.984 kB / 407.8 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.042e-05/0.3248, allocations: 101.9 kB / 407.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3248, allocations: 0 / 407.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003294/0.3251, allocations: 27.95 kB / 407.9 MB, free: 0.5859 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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 Backend phase and start with SimCode phase: time 0.0009193/0.326, allocations: 0.9122 MB / 408.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003689/0.3264, allocations: 128.5 kB / 408.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.3264, allocations: 4 kB / 408.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.3265, allocations: 23.98 kB / 409 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.3271, allocations: 59.86 kB / 409 MB, free: 15.44 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.3296, allocations: 2.028 MB / 411.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.33, allocations: 0.7162 MB / 411.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.016e-05/0.33, allocations: 4.656 kB / 411.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.3301, allocations: 39.42 kB / 411.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3301, allocations: 0 / 411.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.3576, allocations: 2.741 MB / 414.6 MB, free: 9.895 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.651/9.008, allocations: 4.188 kB / 414.6 MB, free: 9.891 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches