Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 62.52 kB / 347.2 MB, free: 9.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2282, allocations: 49.16 MB / 396.4 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005075/0.2333, allocations: 4.809 MB / 401.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003307/0.2366, allocations: 2.033 MB / 403.2 MB, free: 4.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007312/0.2374, allocations: 51.59 kB / 403.2 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004542/0.2378, allocations: 201 kB / 403.4 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003972/0.2382, allocations: 173.2 kB / 403.6 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007583/0.239, allocations: 396.7 kB / 404 MB, free: 3.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007822/0.2397, allocations: 1 MB / 405 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005996/0.2403, allocations: 403.1 kB / 405.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003823/0.2407, allocations: 348.3 kB / 405.7 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003626/0.2411, allocations: 314.1 kB / 406 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.2412, allocations: 92.38 kB / 406.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002566/0.2415, allocations: 153.3 kB / 406.3 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.2416, allocations: 205.3 kB / 406.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002537/0.2419, allocations: 340.3 kB / 406.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001061/0.2429, allocations: 1.192 MB / 408 MB, free: 1.781 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2429, allocations: 3.938 kB / 408 MB, free: 1.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2429, allocations: 0 / 408 MB, free: 1.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.085e-05/0.2429, allocations: 0 / 408 MB, free: 1.777 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001216/0.2442, allocations: 0.9776 MB / 409 MB, free: 1.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.2442, allocations: 13.73 kB / 409 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001247/0.2443, allocations: 139.1 kB / 409.1 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.2444, allocations: 92.78 kB / 409.2 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007198/0.2452, allocations: 459.7 kB / 409.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/0.2452, allocations: 63.09 kB / 409.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.2453, allocations: 93.73 kB / 409.8 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.2465, allocations: 0.8031 MB / 410.6 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.475e-05/0.2466, allocations: 7.594 kB / 410.6 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-05/0.2466, allocations: 31.72 kB / 410.7 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.229e-05/0.2466, allocations: 21.41 kB / 410.7 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009356/0.2476, allocations: 0.4945 MB / 411.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00321/0.2508, allocations: 2.581 MB / 413.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005439/0.2513, allocations: 210.1 kB / 414 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.2515, allocations: 93.22 kB / 414.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000114/0.2516, allocations: 21.52 kB / 414.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.2516, allocations: 32.09 kB / 414.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.2516, allocations: 1.562 kB / 414.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.00231/0.254, allocations: 1.128 MB / 415.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.254, allocations: 58.94 kB / 415.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003239/0.2543, allocations: 305.3 kB / 415.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.2543, allocations: 36.3 kB / 415.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/0.2546, allocations: 417.4 kB / 416 MB, free: 12.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.2547, allocations: 134.6 kB / 416.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.2549, allocations: 91.58 kB / 416.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.255, allocations: 352 kB / 416.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.2552, allocations: 109.3 kB / 416.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003109/0.2555, allocations: 249.3 kB / 417 MB, free: 11.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005316/0.2561, allocations: 386.3 kB / 417.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2561, allocations: 1.781 kB / 417.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007224/0.2568, allocations: 454.8 kB / 417.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.2568, allocations: 10.94 kB / 417.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.2568, allocations: 9.438 kB / 417.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001798/0.257, allocations: 41.78 kB / 417.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003382/0.2573, allocations: 114.4 kB / 418 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004413/0.2578, allocations: 0.5537 MB / 418.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/0.258, allocations: 15 kB / 418.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.932e-05/0.258, allocations: 25.91 kB / 418.5 MB, free: 10.07 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003214/0.2583, allocations: 218.2 kB / 418.8 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.1e-05/0.2584, allocations: 41.2 kB / 418.8 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006221/0.259, allocations: 318.7 kB / 419.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.259, allocations: 4.562 kB / 419.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.259, allocations: 0 / 419.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.2591, allocations: 3.984 kB / 419.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001492/0.2605, allocations: 0.9522 MB / 420.1 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.2605, allocations: 5.281 kB / 420.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003364/0.2609, allocations: 83.61 kB / 420.2 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001287/0.261, allocations: 33.34 kB / 420.2 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.261, allocations: 12.64 kB / 420.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003637/0.2614, allocations: 0.5492 MB / 420.8 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.2614, allocations: 6.234 kB / 420.8 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008003/0.2622, allocations: 0.5455 MB / 421.3 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.872e-05/0.2623, allocations: 38.83 kB / 421.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.856e-05/0.2623, allocations: 12.11 kB / 421.4 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.2625, allocations: 8.125 kB / 421.4 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.886e-05/0.2625, allocations: 29.61 kB / 421.4 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.2626, allocations: 13.56 kB / 421.4 MB, free: 7.922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002573/0.2628, allocations: 209.1 kB / 421.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2628, allocations: 0 / 421.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005299/0.2633, allocations: 120.8 kB / 421.7 MB, free: 7.766 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001169/0.2645, allocations: 1.093 MB / 422.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006456/0.2652, allocations: 299.2 kB / 423.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2652, allocations: 1.656 kB / 423.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002812/0.2654, allocations: 140.8 kB / 423.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005106/0.266, allocations: 68.36 kB / 423.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006044/0.272, allocations: 4.397 MB / 427.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.2724, allocations: 329.6 kB / 428 MB, free: 2.434 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001684/0.2725, allocations: 47.33 kB / 428.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002991/0.2728, allocations: 243.3 kB / 428.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of SimCode: time 6.42e-07/0.2728, allocations: 0 / 428.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2565/0.5293, allocations: 8.906 MB / 437.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/13.23, allocations: 7.984 kB / 437.2 MB, free: 9.172 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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: 15.784029546193779]