Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.00138/0.00138, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001743/0.001743, allocations: 203.8 kB / 23.72 MB, free: 4.391 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.439/1.439, allocations: 230.5 MB / 257.4 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 68.08 kB / 377.8 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2485, allocations: 53.4 MB / 431.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004758/0.2532, allocations: 2.783 MB / 433.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.2548, allocations: 0.7129 MB / 434.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000291/0.2551, allocations: 8 kB / 434.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.2553, allocations: 47.5 kB / 434.7 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004008/0.2557, allocations: 115.1 kB / 434.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004464/0.2562, allocations: 103.8 kB / 434.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007149/0.2569, allocations: 414.4 kB / 435.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002659/0.2572, allocations: 81.36 kB / 435.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003339/0.2575, allocations: 163.4 kB / 435.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003199/0.2578, allocations: 155.2 kB / 435.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.714e-05/0.2579, allocations: 40 kB / 435.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.518e-05/0.258, allocations: 40 kB / 435.8 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.643e-05/0.2581, allocations: 79.75 kB / 435.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002502/0.2583, allocations: 147.3 kB / 436 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007055/0.2591, allocations: 466.3 kB / 436.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2591, allocations: 0 / 436.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2591, allocations: 3.938 kB / 436.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.496e-05/0.2591, allocations: 0 / 436.5 MB, free: 1.094 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.00151/0.2606, allocations: 0.6092 MB / 437.1 MB, free: 460 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.2606, allocations: 15.98 kB / 437.1 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.733e-05/0.2607, allocations: 58.73 kB / 437.2 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.228e-05/0.2608, allocations: 36.73 kB / 437.2 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005108/0.2613, allocations: 245.9 kB / 437.4 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.748e-05/0.2614, allocations: 21.03 kB / 437.5 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.71e-05/0.2614, allocations: 28.31 kB / 437.5 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007351/0.2621, allocations: 371.3 kB / 437.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.2621, allocations: 3.938 kB / 437.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.2622, allocations: 12 kB / 437.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.2622, allocations: 8 kB / 437.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007191/0.2629, allocations: 254.5 kB / 438.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00219/0.2651, allocations: 0.9748 MB / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006843/0.2658, allocations: 210.6 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002689/0.2661, allocations: 88.8 kB / 439.4 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.2661, allocations: 0 / 439.4 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004894/0.2666, allocations: 263.8 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.754e-06/0.2666, allocations: 0 / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001698/0.2683, allocations: 449.5 kB / 440.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.2684, allocations: 132.5 kB / 440.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003945/0.2688, allocations: 285.8 kB / 440.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.2688, allocations: 33.7 kB / 440.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.269, allocations: 204 kB / 440.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.849e-05/0.269, allocations: 59.47 kB / 440.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.2691, allocations: 53.7 kB / 440.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.2693, allocations: 330.8 kB / 441.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.2696, allocations: 121.6 kB / 441.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.2701, allocations: 311.5 kB / 441.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006048/0.2707, allocations: 281.6 kB / 441.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.2707, allocations: 0 / 441.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001029/0.2717, allocations: 437.4 kB / 442.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.923e-05/0.2717, allocations: 41.69 kB / 442.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.2718, allocations: 3.938 kB / 442.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003964/0.2722, allocations: 76.95 kB / 442.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/0.2724, allocations: 47.91 kB / 442.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002244/0.2746, allocations: 1.695 MB / 444.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003304/0.2749, allocations: 51.75 kB / 444.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.275, allocations: 15.94 kB / 444.2 MB, free: 8.805 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (gain.opAmp.satNeg,gain.opAmp.satPos,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 (24): * Single equations (assignments): 22 * 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.0001881/0.2752, allocations: 153.2 kB / 444.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.886e-05/0.2752, allocations: 27.84 kB / 444.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.467e-05/0.2753, allocations: 26.12 kB / 444.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.2753, allocations: 0 / 444.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2753, allocations: 0 / 444.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.2753, allocations: 3.984 kB / 444.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003172/0.2756, allocations: 276.4 kB / 444.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2756, allocations: 0 / 444.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.2757, allocations: 23.97 kB / 444.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002778/0.276, allocations: 76.8 kB / 444.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.276, allocations: 7.922 kB / 444.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001975/0.278, allocations: 1.688 MB / 446.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.278, allocations: 3.984 kB / 446.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008048/0.2788, allocations: 313.5 kB / 446.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.175e-05/0.2789, allocations: 35.73 kB / 446.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/0.2789, allocations: 11.94 kB / 446.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.2792, allocations: 27.95 kB / 446.9 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-05/0.2792, allocations: 23.97 kB / 446.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.2793, allocations: 11.92 kB / 446.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002208/0.2795, allocations: 201.2 kB / 447.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2795, allocations: 0 / 447.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.2798, allocations: 83.83 kB / 447.2 MB, free: 5.641 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: 5 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count,gain.opAmp.satPos,gain.opAmp.satNeg) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * 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.001139/0.281, allocations: 0.8511 MB / 448 MB, free: 4.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009418/0.2819, allocations: 438.2 kB / 448.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.2819, allocations: 0.625 kB / 448.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000459/0.2824, allocations: 246.5 kB / 448.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.2827, allocations: 51.98 kB / 448.8 MB, free: 4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005677/0.2884, allocations: 3.201 MB / 452 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.2885, allocations: 151.8 kB / 452.1 MB, free: 456 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.2887, allocations: 26.28 kB / 452.1 MB, free: 432 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.2888, allocations: 95.34 kB / 452.2 MB, free: 336 kB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2888, allocations: 0 / 452.2 MB, free: 336 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03992/0.3287, allocations: 7.919 MB / 460.1 MB, free: 8.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.8, allocations: 6.891 kB / 460.1 MB, free: 8.566 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.177189689129591]