Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.00171/0.00171, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 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.002008/0.002008, allocations: 210 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 51.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2698, allocations: 53.36 MB / 431.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004053/0.2739, allocations: 2.844 MB / 434 MB, free: 4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.2751, allocations: 0.6778 MB / 434.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.2752, allocations: 4 kB / 434.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.2753, allocations: 51.5 kB / 434.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.2755, allocations: 95.19 kB / 434.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.2758, allocations: 87.88 kB / 434.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004359/0.2762, allocations: 374.5 kB / 435.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.2764, allocations: 91.34 kB / 435.4 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.2766, allocations: 147.4 kB / 435.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.2768, allocations: 163.4 kB / 435.7 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.846e-05/0.2768, allocations: 32 kB / 435.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.599e-05/0.2769, allocations: 36 kB / 435.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.363e-05/0.277, allocations: 75.69 kB / 435.8 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.2771, allocations: 171.2 kB / 436 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.2775, allocations: 382.8 kB / 436.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2775, allocations: 0 / 436.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2775, allocations: 0 / 436.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2776, allocations: 0 / 436.4 MB, free: 1.641 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001241/0.2788, allocations: 0.5858 MB / 436.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2788, allocations: 12.03 kB / 437 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.673e-05/0.2789, allocations: 58.73 kB / 437 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.952e-05/0.279, allocations: 36.7 kB / 437 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.2793, allocations: 219 kB / 437.3 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.2794, allocations: 20.88 kB / 437.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.076e-05/0.2794, allocations: 24.38 kB / 437.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006879/0.2801, allocations: 306.6 kB / 437.6 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.2801, allocations: 0 / 437.6 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.2801, allocations: 8 kB / 437.6 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.2801, allocations: 4 kB / 437.6 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007762/0.2809, allocations: 257.5 kB / 437.9 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001716/0.2826, allocations: 1.047 MB / 438.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007633/0.2834, allocations: 206.5 kB / 439.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003099/0.2837, allocations: 96.72 kB / 439.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.2837, allocations: 0 / 439.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000437/0.2842, allocations: 169.8 kB / 439.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.2842, allocations: 0 / 439.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001977/0.2861, allocations: 437.8 kB / 439.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.582e-05/0.2862, allocations: 106.8 kB / 439.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003155/0.2865, allocations: 289.8 kB / 440.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.2866, allocations: 33.7 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.2867, allocations: 196 kB / 440.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.001e-05/0.2867, allocations: 39.69 kB / 440.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.649e-05/0.2868, allocations: 53.89 kB / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.287, allocations: 330.8 kB / 440.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003323/0.2873, allocations: 100.2 kB / 440.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004122/0.2877, allocations: 202.9 kB / 441.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006798/0.2884, allocations: 304 kB / 441.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2884, allocations: 4 kB / 441.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00118/0.2896, allocations: 423.8 kB / 441.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/0.2896, allocations: 33.7 kB / 441.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.2896, allocations: 7.938 kB / 441.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000328/0.29, allocations: 80.89 kB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.2902, allocations: 43.91 kB / 442 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/0.2926, allocations: 1.616 MB / 443.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.2929, allocations: 51.88 kB / 443.7 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.2929, allocations: 12 kB / 443.7 MB, free: 9.801 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001612/0.2931, allocations: 153.6 kB / 443.8 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.887e-05/0.2931, allocations: 27.81 kB / 443.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.099e-05/0.2932, allocations: 25.7 kB / 443.9 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-06/0.2932, allocations: 0 / 443.9 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.2932, allocations: 4 kB / 443.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2932, allocations: 192 / 443.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002808/0.2935, allocations: 276.4 kB / 444.2 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2935, allocations: 4 kB / 444.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.2936, allocations: 15.98 kB / 444.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000257/0.2939, allocations: 76.73 kB / 444.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.2939, allocations: 0 / 444.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002216/0.2961, allocations: 1.6 MB / 445.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2961, allocations: 0 / 445.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009798/0.2971, allocations: 318 kB / 446.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.211e-05/0.2972, allocations: 35.83 kB / 446.2 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.2972, allocations: 0 / 446.2 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.2974, allocations: 32.16 kB / 446.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.013e-05/0.2975, allocations: 19.95 kB / 446.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.2975, allocations: 15.94 kB / 446.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002157/0.2978, allocations: 205.2 kB / 446.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2978, allocations: 3.938 kB / 446.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003379/0.2981, allocations: 75.89 kB / 446.5 MB, free: 6.746 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001438/0.2995, allocations: 0.8433 MB / 447.4 MB, free: 5.871 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009727/0.3005, allocations: 417.4 kB / 447.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3005, allocations: 0 / 447.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000451/0.301, allocations: 226.6 kB / 448 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.3012, allocations: 39.91 kB / 448.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005239/0.3065, allocations: 2.991 MB / 451 MB, free: 2.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004217/0.3069, allocations: 0.7518 MB / 451.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.307, allocations: 26.28 kB / 451.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.3071, allocations: 75.42 kB / 451.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3071, allocations: 0 / 451.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03893/0.3461, allocations: 7.06 MB / 459 MB, free: 10.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.01, allocations: 3.75 kB / 459 MB, free: 10.24 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.504292950965464]