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.001371/0.001371, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001375/0.001375, allocations: 212.6 kB / 24.54 MB, free: 4.016 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.504/1.504, allocations: 230.3 MB / 258 MB, free: 8.266 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.2393/0.2393, allocations: 46.89 MB / 361.3 MB, free: 4.449 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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002226/0.002226, allocations: 71.88 kB / 0.497 GB, free: 7.617 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.4054, allocations: 66.03 MB / 0.5615 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.0037/0.4091, allocations: 1.943 MB / 0.5634 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.4102, allocations: 0.5659 MB / 0.564 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.4103, allocations: 7.938 kB / 0.564 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.4105, allocations: 15.8 kB / 0.564 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001089/0.4106, allocations: 43.62 kB / 0.564 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.4108, allocations: 51.88 kB / 0.5641 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002209/0.411, allocations: 155.2 kB / 0.5642 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.4112, allocations: 45.84 kB / 0.5643 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.4114, allocations: 71.77 kB / 0.5643 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.4115, allocations: 59.7 kB / 0.5644 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.4116, allocations: 12 kB / 0.5644 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.051e-05/0.4116, allocations: 16 kB / 0.5644 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.675e-05/0.4117, allocations: 31.86 kB / 0.5645 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.873e-05/0.4117, allocations: 67.66 kB / 0.5645 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002711/0.412, allocations: 157.9 kB / 0.5647 GB, free: 1.383 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.412, allocations: 0 / 0.5647 GB, free: 1.383 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.412, allocations: 4 kB / 0.5647 GB, free: 1.379 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.412, allocations: 0 / 0.5647 GB, free: 1.379 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.0006925/0.4127, allocations: 365.7 kB / 0.565 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.4128, allocations: 11.97 kB / 0.565 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002168/0.413, allocations: 28.83 kB / 0.5651 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.4133, allocations: 146.3 kB / 0.5652 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.4133, allocations: 12.38 kB / 0.5652 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.13e-05/0.4133, allocations: 16.33 kB / 0.5652 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.4136, allocations: 138.2 kB / 0.5654 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.4137, allocations: 0 / 0.5654 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.4137, allocations: 4 kB / 0.5654 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.4137, allocations: 4 kB / 0.5654 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002013/0.4139, allocations: 83.94 kB / 0.5655 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008045/0.4147, allocations: 431.5 kB / 0.5659 GB, free: 64 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.415, allocations: 118.5 kB / 0.566 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.4151, allocations: 52.84 kB / 0.566 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.4151, allocations: 0 / 0.566 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.4151, allocations: 34.55 kB / 0.5661 GB, free: 15.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 2.645e-06/0.4151, allocations: 8 kB / 0.5661 GB, free: 15.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001512/0.4167, allocations: 0.6634 MB / 0.5667 GB, free: 15.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.806e-05/0.4167, allocations: 55.41 kB / 0.5668 GB, free: 15.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.4169, allocations: 144.2 kB / 0.5669 GB, free: 14.9 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.4169, allocations: 33.7 kB / 0.5669 GB, free: 14.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.817e-05/0.417, allocations: 116.3 kB / 0.567 GB, free: 14.74 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.531e-05/0.4171, allocations: 75.28 kB / 0.5671 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.917e-05/0.4172, allocations: 33.72 kB / 0.5672 GB, free: 14.63 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.4173, allocations: 326.8 kB / 0.5675 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.895e-05/0.4174, allocations: 35.98 kB / 0.5675 GB, free: 14.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.4176, allocations: 90.91 kB / 0.5676 GB, free: 14.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.4178, allocations: 131.3 kB / 0.5677 GB, free: 14.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.4178, allocations: 0 / 0.5677 GB, free: 14.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003898/0.4182, allocations: 210.2 kB / 0.5679 GB, free: 13.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.4182, allocations: 9.969 kB / 0.5679 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4182, allocations: 0 / 0.5679 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.4184, allocations: 48.77 kB / 0.568 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.4186, allocations: 35.92 kB / 0.568 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/0.4202, allocations: 1.633 MB / 0.5696 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.568e-05/0.4203, allocations: 11.98 kB / 0.5696 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.4203, allocations: 12 kB / 0.5696 GB, free: 11.95 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.0001283/0.4204, allocations: 127.2 kB / 0.5697 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.403e-05/0.4205, allocations: 11.95 kB / 0.5698 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.29e-05/0.4205, allocations: 21.12 kB / 0.5698 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.4205, allocations: 3.938 kB / 0.5698 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4205, allocations: 0 / 0.5698 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4205, allocations: 7.984 kB / 0.5698 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008116/0.4213, allocations: 0.5184 MB / 0.5703 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.4213, allocations: 0 / 0.5703 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.4215, allocations: 35.97 kB / 0.5703 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001096/0.4216, allocations: 32.84 kB / 0.5704 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.4216, allocations: 0 / 0.5704 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.423, allocations: 1.373 MB / 0.5717 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.423, allocations: 4.031 kB / 0.5717 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005404/0.4236, allocations: 345 kB / 0.572 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.645e-05/0.4236, allocations: 12.08 kB / 0.572 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.4236, allocations: 8 kB / 0.572 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.115e-05/0.4237, allocations: 3.984 kB / 0.5721 GB, free: 9.254 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.856e-05/0.4238, allocations: 27.97 kB / 0.5721 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.4238, allocations: 4 kB / 0.5721 GB, free: 9.223 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001125/0.4239, allocations: 117.8 kB / 0.5722 GB, free: 9.109 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4239, allocations: 0 / 0.5722 GB, free: 9.109 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000343/0.4242, allocations: 40 kB / 0.5722 GB, free: 9.07 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.0001482/0.4244, allocations: 91.25 kB / 0.5723 GB, free: 8.973 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006263/0.425, allocations: 254.8 kB / 0.5726 GB, free: 8.711 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.425, allocations: 3.938 kB / 0.5726 GB, free: 8.707 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003016/0.4253, allocations: 188.6 kB / 0.5727 GB, free: 8.512 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.4257, allocations: 24.11 kB / 0.5728 GB, free: 8.488 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009745/0.4266, allocations: 457.4 kB / 0.5732 GB, free: 8.012 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.4271, allocations: 0.7205 MB / 0.5739 GB, free: 7.262 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.341e-05/0.4272, allocations: 13.42 kB / 0.5739 GB, free: 7.246 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.152e-05/0.4272, allocations: 19.38 kB / 0.5739 GB, free: 7.227 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4272, allocations: 0 / 0.5739 GB, free: 7.227 MB / 414.1 MB Notification: Performance of Templates: time 0.005714/0.433, allocations: 1.729 MB / 0.5756 GB, free: 5.5 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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: 5.229123993776739]