Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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.001802/0.001802, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002216/0.002216, allocations: 211.1 kB / 23.73 MB, free: 4.523 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.419/1.419, allocations: 230.6 MB / 257.5 MB, free: 7.773 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.OpAmps.Differentiator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 47.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2376, allocations: 53.38 MB / 431.1 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.00433/0.242, allocations: 2.69 MB / 433.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.2433, allocations: 0.7246 MB / 434.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.2435, allocations: 11.94 kB / 434.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.2436, allocations: 43.58 kB / 434.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.2438, allocations: 103.2 kB / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003032/0.2441, allocations: 111.8 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004385/0.2446, allocations: 390.5 kB / 435.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.2448, allocations: 95.66 kB / 435.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002797/0.2451, allocations: 163.4 kB / 435.4 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.2453, allocations: 163.3 kB / 435.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.471e-05/0.2453, allocations: 36 kB / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.537e-05/0.2454, allocations: 40 kB / 435.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.736e-05/0.2455, allocations: 75.73 kB / 435.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.2456, allocations: 143.3 kB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00045/0.2461, allocations: 430.7 kB / 436.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2461, allocations: 0 / 436.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2461, allocations: 0 / 436.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.2461, allocations: 0 / 436.3 MB, free: 1.387 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001262/0.2473, allocations: 0.5975 MB / 436.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.2474, allocations: 12.03 kB / 436.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.418e-05/0.2475, allocations: 58.73 kB / 437 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.892e-05/0.2475, allocations: 32.75 kB / 437 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.2479, allocations: 238.9 kB / 437.2 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.2479, allocations: 16.88 kB / 437.2 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/0.248, allocations: 24.36 kB / 437.3 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007245/0.2487, allocations: 344.5 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.2487, allocations: 0 / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.2488, allocations: 16 kB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.2488, allocations: 4 kB / 437.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007616/0.2495, allocations: 269.8 kB / 437.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.2513, allocations: 1.003 MB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008369/0.2521, allocations: 234.5 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003284/0.2524, allocations: 100.8 kB / 439.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.2525, allocations: 0 / 439.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004792/0.2529, allocations: 202.6 kB / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.2529, allocations: 4 kB / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001045/0.254, allocations: 317.2 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.254, allocations: 77.11 kB / 439.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002942/0.2543, allocations: 277.7 kB / 440.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.2544, allocations: 29.7 kB / 440.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.2545, allocations: 192.1 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.466e-05/0.2545, allocations: 47.62 kB / 440.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.805e-05/0.2546, allocations: 49.66 kB / 440.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.2548, allocations: 330.8 kB / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003595/0.2551, allocations: 133.8 kB / 440.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/0.2556, allocations: 246.9 kB / 441.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000707/0.2563, allocations: 303.7 kB / 441.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2563, allocations: 0 / 441.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008903/0.2572, allocations: 392.5 kB / 441.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.332e-05/0.2572, allocations: 37.7 kB / 441.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.2572, allocations: 4 kB / 441.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.2572, allocations: 4 kB / 441.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002892/0.2575, allocations: 64.23 kB / 441.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.2575, allocations: 7.984 kB / 441.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002913/0.2578, allocations: 55.73 kB / 441.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.2578, allocations: 12 kB / 441.9 MB, free: 11.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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.0001511/0.258, allocations: 141.8 kB / 442.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.812e-05/0.258, allocations: 23.8 kB / 442.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.442e-05/0.2581, allocations: 33.7 kB / 442.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2581, allocations: 0 / 442.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2581, allocations: 0 / 442.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.2581, allocations: 7.922 kB / 442.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/0.2584, allocations: 256.5 kB / 442.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2584, allocations: 3.938 kB / 442.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002411/0.2586, allocations: 43.95 kB / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2586, allocations: 0 / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.2586, allocations: 0 / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.2586, allocations: 8 kB / 442.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.2586, allocations: 3.984 kB / 442.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.2597, allocations: 368.7 kB / 442.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.076e-05/0.2597, allocations: 27.88 kB / 442.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.832e-05/0.2598, allocations: 0 / 442.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.26, allocations: 35.95 kB / 442.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.26, allocations: 15.86 kB / 442.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.2601, allocations: 11.98 kB / 442.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001831/0.2602, allocations: 189.3 kB / 443.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2602, allocations: 0 / 443.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002995/0.2605, allocations: 63.89 kB / 443.2 MB, free: 10.06 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.c.v) * 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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001315/0.2619, allocations: 0.8895 MB / 444 MB, free: 9.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007754/0.2626, allocations: 335.8 kB / 444.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2626, allocations: 0 / 444.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003214/0.263, allocations: 97.14 kB / 444.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.2633, allocations: 60.55 kB / 444.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004862/0.2681, allocations: 3.004 MB / 447.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.2683, allocations: 146.9 kB / 447.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001238/0.2684, allocations: 22.3 kB / 447.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.2686, allocations: 83.41 kB / 447.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of SimCode: time 1.202e-06/0.2686, allocations: 0 / 447.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03427/0.3028, allocations: 6.446 MB / 454.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.01, allocations: 6.734 kB / 454.2 MB, free: 14.94 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Differentiator/Differentiator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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: 13.315803167002741]