Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001277, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 214.3 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 230.5 MB / 257.4 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 59.91 kB / 377.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3681, allocations: 53.41 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003979/0.3721, allocations: 1.992 MB / 433.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009535/0.373, allocations: 0.4986 MB / 433.6 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.082e-05/0.3731, allocations: 8 kB / 433.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.189e-05/0.3732, allocations: 15.8 kB / 433.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.589e-05/0.3733, allocations: 27.72 kB / 433.7 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003097/0.3736, allocations: 63.86 kB / 433.7 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001643/0.3737, allocations: 115.6 kB / 433.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.3739, allocations: 37.61 kB / 433.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.927e-05/0.3739, allocations: 51.78 kB / 433.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.527e-05/0.374, allocations: 47.77 kB / 434 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.374, allocations: 8 kB / 434 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.076e-05/0.3741, allocations: 16 kB / 434 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.108e-05/0.3741, allocations: 23.92 kB / 434 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.249e-05/0.3741, allocations: 47.73 kB / 434.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.3743, allocations: 137.1 kB / 434.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3743, allocations: 0 / 434.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.3743, allocations: 0 / 434.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.3743, allocations: 0 / 434.2 MB, free: 3.371 MB / 334.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.0005317/0.3749, allocations: 349.8 kB / 434.5 MB, free: 3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3749, allocations: 11.98 kB / 434.5 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.86e-05/0.375, allocations: 46.75 kB / 434.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.543e-05/0.375, allocations: 20.83 kB / 434.6 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002088/0.3752, allocations: 149.8 kB / 434.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.3752, allocations: 8.375 kB / 434.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.361e-05/0.3752, allocations: 16.33 kB / 434.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004549/0.3757, allocations: 243.5 kB / 435 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.3757, allocations: 3.938 kB / 435 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.3757, allocations: 8 kB / 435 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.3757, allocations: 0 / 435 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.376, allocations: 87.88 kB / 435.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005845/0.3765, allocations: 0.5193 MB / 435.6 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002625/0.3768, allocations: 135.9 kB / 435.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.377, allocations: 78.56 kB / 435.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.377, allocations: 4 kB / 435.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.377, allocations: 38.5 kB / 435.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.377, allocations: 0 / 435.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005153/0.3775, allocations: 177.4 kB / 436.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.672e-05/0.3776, allocations: 114.8 kB / 436.2 MB, free: 1.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.3777, allocations: 130.3 kB / 436.3 MB, free: 1.031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.3778, allocations: 33.69 kB / 436.3 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.804e-05/0.3778, allocations: 115.9 kB / 436.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.3779, allocations: 19.86 kB / 436.5 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.158e-05/0.3779, allocations: 33.7 kB / 436.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.378, allocations: 322.8 kB / 436.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.3781, allocations: 35.97 kB / 436.9 MB, free: 468 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.3783, allocations: 135.5 kB / 437 MB, free: 288 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.3786, allocations: 180.7 kB / 437.2 MB, free: 60 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3786, allocations: 3.984 kB / 437.2 MB, free: 56 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003808/0.379, allocations: 185.6 kB / 437.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.379, allocations: 8 kB / 437.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.379, allocations: 7.938 kB / 437.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3791, allocations: 8 kB / 437.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.3792, allocations: 43.91 kB / 437.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.3792, allocations: 4 kB / 437.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.3793, allocations: 19.89 kB / 437.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.3793, allocations: 8 kB / 437.4 MB, free: 15.77 MB / 350.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.000113/0.3795, allocations: 141.8 kB / 437.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.3796, allocations: 81.95 kB / 437.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.3796, allocations: 20.66 kB / 437.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.3796, allocations: 0 / 437.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3797, allocations: 0 / 437.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3797, allocations: 8.031 kB / 437.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002602/0.3799, allocations: 172.6 kB / 437.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.3799, allocations: 0 / 437.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.3801, allocations: 31.97 kB / 437.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3801, allocations: 4 kB / 437.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.3801, allocations: 3.938 kB / 437.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.3801, allocations: 11.94 kB / 437.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3801, allocations: 0 / 437.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005186/0.3806, allocations: 370.9 kB / 438.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.113e-05/0.3806, allocations: 15.88 kB / 438.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.3807, allocations: 11.92 kB / 438.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.3808, allocations: 8 kB / 438.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.789e-05/0.3808, allocations: 3.984 kB / 438.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.3808, allocations: 8.062 kB / 438.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.843e-05/0.3809, allocations: 103.2 kB / 438.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3809, allocations: 0 / 438.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003002/0.3812, allocations: 24 kB / 438.4 MB, free: 14.69 MB / 350.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.000892/0.3821, allocations: 0.9077 MB / 439.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002908/0.3824, allocations: 116.2 kB / 439.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.3824, allocations: 0 / 439.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.549e-05/0.3825, allocations: 31.91 kB / 439.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.3829, allocations: 63.2 kB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.3853, allocations: 2.024 MB / 441.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.3854, allocations: 101.8 kB / 441.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.435e-05/0.3854, allocations: 12.64 kB / 441.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.839e-05/0.3855, allocations: 35.42 kB / 441.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3855, allocations: 11.88 kB / 441.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03292/0.4184, allocations: 3.309 MB / 445 MB, free: 8.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.69, allocations: 7.969 kB / 445.1 MB, free: 8.016 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.77412301581353]