Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001889/0.001889, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.002301/0.002301, allocations: 206.7 kB / 23.72 MB, free: 4.492 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.485/1.485, allocations: 230.5 MB / 257.4 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2317/0.2317, allocations: 46.95 MB / 360.8 MB, free: 3.902 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002552/0.002552, allocations: 83.8 kB / 0.4961 GB, free: 7.535 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3513, allocations: 66.09 MB / 0.5607 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004887/0.3561, allocations: 2.641 MB / 0.5633 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.3576, allocations: 0.7439 MB / 0.564 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.3577, allocations: 11.94 kB / 0.564 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000195/0.3579, allocations: 55.39 kB / 0.5641 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.3582, allocations: 130.9 kB / 0.5642 GB, free: 400 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.3585, allocations: 107.8 kB / 0.5643 GB, free: 292 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005325/0.3591, allocations: 441.8 kB / 0.5647 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.3593, allocations: 99.88 kB / 0.5648 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002851/0.3596, allocations: 183.3 kB / 0.565 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002474/0.3598, allocations: 155.2 kB / 0.5651 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.379e-05/0.3599, allocations: 32 kB / 0.5652 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.36, allocations: 40 kB / 0.5652 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.945e-05/0.3601, allocations: 83.69 kB / 0.5653 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.3602, allocations: 163.3 kB / 0.5654 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005472/0.3608, allocations: 446.1 kB / 0.5659 GB, free: 14.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3608, allocations: 0 / 0.5659 GB, free: 14.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3608, allocations: 0 / 0.5659 GB, free: 14.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.3608, allocations: 0 / 0.5659 GB, free: 14.66 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001035/0.3618, allocations: 0.5911 MB / 0.5664 GB, free: 14.04 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3619, allocations: 8.031 kB / 0.5664 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.764e-05/0.362, allocations: 74.72 kB / 0.5665 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002538/0.3622, allocations: 60.62 kB / 0.5666 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004042/0.3626, allocations: 218.8 kB / 0.5668 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.3626, allocations: 25.38 kB / 0.5668 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.908e-05/0.3627, allocations: 44.33 kB / 0.5669 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006812/0.3634, allocations: 394.3 kB / 0.5672 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.3634, allocations: 11.95 kB / 0.5672 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.976e-05/0.3635, allocations: 19.98 kB / 0.5673 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.3635, allocations: 8 kB / 0.5673 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004604/0.3639, allocations: 219.7 kB / 0.5675 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.3664, allocations: 1.601 MB / 0.569 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004931/0.3669, allocations: 258.4 kB / 0.5693 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.3671, allocations: 86.08 kB / 0.5694 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.3671, allocations: 7.938 kB / 0.5694 GB, free: 10.78 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.3671, allocations: 46.55 kB / 0.5694 GB, free: 10.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.764e-06/0.3671, allocations: 0 / 0.5694 GB, free: 10.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007218/0.3679, allocations: 269.2 kB / 0.5697 GB, free: 10.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.368, allocations: 213.6 kB / 0.5699 GB, free: 10.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/0.3683, allocations: 288.4 kB / 0.5702 GB, free: 9.914 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.3684, allocations: 29.7 kB / 0.5702 GB, free: 9.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002004/0.3686, allocations: 244.1 kB / 0.5704 GB, free: 9.637 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.3687, allocations: 127 kB / 0.5705 GB, free: 9.512 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.3688, allocations: 98.3 kB / 0.5706 GB, free: 9.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.369, allocations: 347.1 kB / 0.571 GB, free: 9.062 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.3692, allocations: 101.3 kB / 0.5711 GB, free: 8.961 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004938/0.3697, allocations: 436.8 kB / 0.5715 GB, free: 8.379 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007823/0.3705, allocations: 0.5663 MB / 0.572 GB, free: 7.652 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.3705, allocations: 3.938 kB / 0.572 GB, free: 7.648 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009237/0.3714, allocations: 0.5327 MB / 0.5726 GB, free: 7.109 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.3714, allocations: 12 kB / 0.5726 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/0.3715, allocations: 12 kB / 0.5726 GB, free: 7.086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.092e-05/0.3715, allocations: 16 kB / 0.5726 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004803/0.372, allocations: 144.3 kB / 0.5727 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.164e-05/0.372, allocations: 23.92 kB / 0.5727 GB, free: 6.906 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000322/0.3723, allocations: 67.62 kB / 0.5728 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.172e-05/0.3724, allocations: 32 kB / 0.5728 GB, free: 6.809 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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.0002085/0.3726, allocations: 181.5 kB / 0.573 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.3727, allocations: 35.77 kB / 0.5731 GB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.596e-05/0.3728, allocations: 37.83 kB / 0.5731 GB, free: 6.547 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.3728, allocations: 4 kB / 0.5731 GB, free: 6.543 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3728, allocations: 3.938 kB / 0.5731 GB, free: 6.539 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3728, allocations: 4 kB / 0.5731 GB, free: 6.535 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001301/0.3741, allocations: 0.6044 MB / 0.5737 GB, free: 5.875 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.3741, allocations: 8 kB / 0.5737 GB, free: 5.867 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004445/0.3746, allocations: 91.88 kB / 0.5738 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.3746, allocations: 4 kB / 0.5738 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.3746, allocations: 8 kB / 0.5738 GB, free: 5.766 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.035e-05/0.3746, allocations: 11.88 kB / 0.5738 GB, free: 5.754 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.3746, allocations: 4 kB / 0.5738 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008289/0.3755, allocations: 0.8358 MB / 0.5746 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.05e-05/0.3755, allocations: 31.75 kB / 0.5747 GB, free: 4.852 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.911e-05/0.3756, allocations: 19.92 kB / 0.5747 GB, free: 4.832 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003493/0.3759, allocations: 4 kB / 0.5747 GB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.306e-05/0.376, allocations: 19.97 kB / 0.5747 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.376, allocations: 15.98 kB / 0.5747 GB, free: 4.793 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001857/0.3762, allocations: 187.1 kB / 0.5749 GB, free: 4.609 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3762, allocations: 0 / 0.5749 GB, free: 4.609 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007117/0.3769, allocations: 99.89 kB / 0.575 GB, free: 4.512 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.001184/0.3781, allocations: 1.383 MB / 0.5763 GB, free: 3.094 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005726/0.3787, allocations: 292.9 kB / 0.5766 GB, free: 2.809 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3787, allocations: 0 / 0.5766 GB, free: 2.809 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.3788, allocations: 77.47 kB / 0.5767 GB, free: 2.734 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.3798, allocations: 94.92 kB / 0.5768 GB, free: 2.648 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006067/0.3859, allocations: 4.936 MB / 0.5816 GB, free: 13.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.3861, allocations: 198.5 kB / 0.5818 GB, free: 13.06 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.3863, allocations: 35.28 kB / 0.5818 GB, free: 13.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.3865, allocations: 123.4 kB / 0.5819 GB, free: 12.9 MB / 430.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3865, allocations: 0 / 0.5819 GB, free: 12.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03685/0.4233, allocations: 7.354 MB / 0.5891 GB, free: 5.707 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.52, allocations: 3.984 kB / 0.5891 GB, free: 5.703 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.582039271015674]