Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.001473/0.001473, 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.001605/0.001605, allocations: 214.6 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.505/1.505, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.2383/0.2383, allocations: 46.95 MB / 360.8 MB, free: 3.91 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.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002492/0.002492, allocations: 83.88 kB / 0.4961 GB, free: 7.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3267, allocations: 66.08 MB / 0.5607 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003276/0.33, allocations: 1.862 MB / 0.5625 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.3311, allocations: 0.527 MB / 0.563 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.929e-05/0.3312, allocations: 7.938 kB / 0.563 GB, free: 1.609 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.3313, allocations: 27.8 kB / 0.563 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.809e-05/0.3314, allocations: 39.62 kB / 0.5631 GB, free: 1.543 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.3317, allocations: 47.89 kB / 0.5631 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002105/0.3319, allocations: 151.3 kB / 0.5633 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.332, allocations: 47.66 kB / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.3322, allocations: 67.66 kB / 0.5634 GB, free: 1.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.3323, allocations: 59.69 kB / 0.5634 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.453e-05/0.3323, allocations: 12 kB / 0.5634 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.661e-05/0.3324, allocations: 20 kB / 0.5635 GB, free: 1.141 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.936e-05/0.3324, allocations: 23.92 kB / 0.5635 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.906e-05/0.3325, allocations: 59.73 kB / 0.5635 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002694/0.3328, allocations: 159.3 kB / 0.5637 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3328, allocations: 0 / 0.5637 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3328, allocations: 0 / 0.5637 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.3328, allocations: 3.938 kB / 0.5637 GB, free: 0.8984 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006236/0.3334, allocations: 357.7 kB / 0.564 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.3334, allocations: 8.031 kB / 0.564 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.88e-05/0.3335, allocations: 50.73 kB / 0.5641 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.3336, allocations: 32.83 kB / 0.5641 GB, free: 432 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.3339, allocations: 149.4 kB / 0.5643 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.3339, allocations: 12.36 kB / 0.5643 GB, free: 248 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.334, allocations: 16.33 kB / 0.5643 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002637/0.3342, allocations: 125.6 kB / 0.5644 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.3342, allocations: 0 / 0.5644 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.3342, allocations: 4 kB / 0.5644 GB, free: 96 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.3343, allocations: 4 kB / 0.5644 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.3345, allocations: 91.92 kB / 0.5645 GB, free: 0 / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007205/0.3352, allocations: 403.5 kB / 0.5649 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002368/0.3354, allocations: 110.5 kB / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.3355, allocations: 56.77 kB / 0.5651 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.3355, allocations: 4 kB / 0.5651 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.3356, allocations: 30.56 kB / 0.5651 GB, free: 15.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.3356, allocations: 3.938 kB / 0.5651 GB, free: 15.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.00151/0.3371, allocations: 0.6675 MB / 0.5657 GB, free: 14.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.3371, allocations: 55.41 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.3373, allocations: 141.6 kB / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.3373, allocations: 33.7 kB / 0.566 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.423e-05/0.3374, allocations: 116.3 kB / 0.5661 GB, free: 14.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.967e-05/0.3375, allocations: 67.39 kB / 0.5661 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.914e-05/0.3375, allocations: 41.7 kB / 0.5662 GB, free: 14.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3377, allocations: 322.8 kB / 0.5665 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.3378, allocations: 47.92 kB / 0.5665 GB, free: 13.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.3379, allocations: 78.72 kB / 0.5666 GB, free: 13.67 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.3381, allocations: 131.3 kB / 0.5667 GB, free: 13.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3381, allocations: 0 / 0.5667 GB, free: 13.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003998/0.3385, allocations: 218.2 kB / 0.5669 GB, free: 13.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.3386, allocations: 7.938 kB / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.3386, allocations: 0 / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001694/0.3387, allocations: 40.84 kB / 0.567 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.3389, allocations: 36.02 kB / 0.567 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001778/0.3407, allocations: 1.621 MB / 0.5686 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.783e-05/0.3408, allocations: 8.125 kB / 0.5686 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.3408, allocations: 8 kB / 0.5686 GB, free: 11.47 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000134/0.3409, allocations: 133.8 kB / 0.5688 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.86e-05/0.341, allocations: 15.91 kB / 0.5688 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.201e-05/0.341, allocations: 17.11 kB / 0.5688 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.341, allocations: 8.188 kB / 0.5688 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.341, allocations: 0 / 0.5688 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.341, allocations: 4 kB / 0.5688 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007966/0.3418, allocations: 0.5068 MB / 0.5693 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3418, allocations: 0 / 0.5693 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.342, allocations: 39.91 kB / 0.5693 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001078/0.3421, allocations: 28.84 kB / 0.5694 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.3421, allocations: 4 kB / 0.5694 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001236/0.3433, allocations: 1.374 MB / 0.5707 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3433, allocations: 0 / 0.5707 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005308/0.3439, allocations: 349.8 kB / 0.571 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.842e-05/0.3439, allocations: 15.94 kB / 0.571 GB, free: 8.789 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.3439, allocations: 3.984 kB / 0.5711 GB, free: 8.785 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.329e-05/0.344, allocations: 8 kB / 0.5711 GB, free: 8.777 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.916e-05/0.3441, allocations: 15.91 kB / 0.5711 GB, free: 8.762 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.3441, allocations: 8 kB / 0.5711 GB, free: 8.754 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.447e-05/0.3442, allocations: 111.4 kB / 0.5712 GB, free: 8.645 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3442, allocations: 0 / 0.5712 GB, free: 8.645 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000347/0.3445, allocations: 40 kB / 0.5712 GB, free: 8.605 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000912/0.3454, allocations: 0.8843 MB / 0.5721 GB, free: 7.691 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000552/0.346, allocations: 254.9 kB / 0.5723 GB, free: 7.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.346, allocations: 0 / 0.5723 GB, free: 7.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.3463, allocations: 194.5 kB / 0.5725 GB, free: 7.227 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.3466, allocations: 19.94 kB / 0.5725 GB, free: 7.207 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/0.3494, allocations: 2.063 MB / 0.5746 GB, free: 5.035 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001312/0.3495, allocations: 103.7 kB / 0.5747 GB, free: 4.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.253e-05/0.3496, allocations: 17.42 kB / 0.5747 GB, free: 4.891 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.246e-05/0.3497, allocations: 39.42 kB / 0.5747 GB, free: 4.852 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3497, allocations: 0 / 0.5747 GB, free: 4.852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.3842, allocations: 4.014 MB / 0.5786 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.27, allocations: 26.22 kB / 0.5786 GB, free: 0.9375 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable J2.phi in file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.420088013168424]