Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.001749/0.001749, allocations: 113 kB / 18.49 MB, free: 4.539 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.002029/0.002029, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.458/1.458, allocations: 230.6 MB / 254.8 MB, free: 15.23 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.DifferenceAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 51.92 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.096/0.09765, allocations: 53.33 MB / 427 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.008109/0.1058, allocations: 6.107 MB / 433.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00321/0.109, allocations: 1.552 MB / 434.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009075/0.1099, allocations: 19.94 kB / 434.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006262/0.1105, allocations: 182.2 kB / 434.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001075/0.1116, allocations: 293.2 kB / 435.2 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.1127, allocations: 419.3 kB / 435.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001745/0.1145, allocations: 1.391 MB / 437 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004832/0.1149, allocations: 293.3 kB / 437.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007567/0.1157, allocations: 0.5101 MB / 437.8 MB, free: 9.953 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000679/0.1164, allocations: 0.568 MB / 438.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001807/0.1166, allocations: 136 kB / 438.5 MB, free: 9.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003138/0.1169, allocations: 183.9 kB / 438.7 MB, free: 9.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002201/0.1171, allocations: 271.2 kB / 438.9 MB, free: 8.805 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005226/0.1176, allocations: 0.5872 MB / 439.5 MB, free: 8.215 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00157/0.1192, allocations: 1.549 MB / 441.1 MB, free: 6.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1192, allocations: 0 / 441.1 MB, free: 6.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1192, allocations: 0 / 441.1 MB, free: 6.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.1192, allocations: 0 / 441.1 MB, free: 6.66 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002793/0.122, allocations: 1.413 MB / 442.5 MB, free: 5.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.122, allocations: 12.03 kB / 442.5 MB, free: 5.184 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.88e-05/0.1221, allocations: 26.12 kB / 442.5 MB, free: 5.156 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001604/0.1222, allocations: 135.6 kB / 442.6 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004355/0.1227, allocations: 136.2 kB / 442.8 MB, free: 4.883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008534/0.1235, allocations: 0.5582 MB / 443.3 MB, free: 4.285 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.154e-05/0.1236, allocations: 66.38 kB / 443.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.1237, allocations: 88.38 kB / 443.5 MB, free: 4.137 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.1254, allocations: 0.8545 MB / 444.3 MB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1254, allocations: 0 / 444.3 MB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.705e-05/0.1255, allocations: 36 kB / 444.4 MB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.1255, allocations: 28 kB / 444.4 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.1271, allocations: 0.8511 MB / 445.3 MB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1944/0.3215, allocations: 3.22 MB / 448.5 MB, free: 23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.3226, allocations: 0.6272 MB / 449.1 MB, free: 22.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006/0.3232, allocations: 385.7 kB / 449.5 MB, free: 22.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.907e-05/0.3233, allocations: 14.38 kB / 449.5 MB, free: 22.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.3233, allocations: 40.66 kB / 449.5 MB, free: 22.92 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 3.436e-06/0.3233, allocations: 0 / 449.5 MB, free: 22.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.00458/0.3279, allocations: 2.273 MB / 451.8 MB, free: 22.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.3279, allocations: 63.73 kB / 451.9 MB, free: 22.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007083/0.3286, allocations: 0.6103 MB / 452.5 MB, free: 21.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.846e-05/0.3287, allocations: 45.02 kB / 452.5 MB, free: 21.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/0.3289, allocations: 443.7 kB / 453 MB, free: 21.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.3291, allocations: 268.6 kB / 453.2 MB, free: 21.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002443/0.3293, allocations: 148.2 kB / 453.4 MB, free: 21.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3294, allocations: 388.6 kB / 453.7 MB, free: 20.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006363/0.33, allocations: 326.5 kB / 454.1 MB, free: 20.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007197/0.3308, allocations: 474 kB / 454.5 MB, free: 20.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.3321, allocations: 0.7992 MB / 455.3 MB, free: 19.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3321, allocations: 2.797 kB / 455.3 MB, free: 19.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002116/0.3342, allocations: 1.117 MB / 456.4 MB, free: 19.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.3342, allocations: 11.55 kB / 456.5 MB, free: 19.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.3343, allocations: 3.156 kB / 456.5 MB, free: 19.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006525/0.3349, allocations: 188.3 kB / 456.6 MB, free: 19.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009042/0.3358, allocations: 206.2 kB / 456.8 MB, free: 19.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003209/0.339, allocations: 2.886 MB / 459.7 MB, free: 17.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007414/0.3398, allocations: 35.28 kB / 459.8 MB, free: 17.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.383e-05/0.3398, allocations: 39.64 kB / 459.8 MB, free: 17.14 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * 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 {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003831/0.3402, allocations: 230 kB / 460 MB, free: 16.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.3404, allocations: 83.81 kB / 460.1 MB, free: 16.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001937/0.3406, allocations: 91.75 kB / 460.2 MB, free: 16.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.3406, allocations: 11.61 kB / 460.2 MB, free: 16.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.836e-05/0.3406, allocations: 7.469 kB / 460.2 MB, free: 16.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.3406, allocations: 3.656 kB / 460.2 MB, free: 16.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.3417, allocations: 0.8776 MB / 461.1 MB, free: 16.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3417, allocations: 9.188 kB / 461.1 MB, free: 16.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007288/0.3425, allocations: 143.3 kB / 461.2 MB, free: 16.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005095/0.343, allocations: 185.5 kB / 461.4 MB, free: 16.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.854e-05/0.343, allocations: 21.89 kB / 461.5 MB, free: 16.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003125/0.3462, allocations: 2.895 MB / 464.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3462, allocations: 1.406 kB / 464.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002504/0.3487, allocations: 1.422 MB / 465.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001626/0.3488, allocations: 151.6 kB / 465.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.849e-05/0.3489, allocations: 21.89 kB / 465.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006163/0.3496, allocations: 55.73 kB / 466 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.3497, allocations: 55.89 kB / 466 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.339e-05/0.3497, allocations: 23.39 kB / 466.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004749/0.3502, allocations: 427.7 kB / 466.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3502, allocations: 1.094 kB / 466.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008706/0.3511, allocations: 239.8 kB / 466.7 MB, free: 12.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (56): * Single equations (assignments): 55 * 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 {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002603/0.3537, allocations: 2.005 MB / 468.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002098/0.3558, allocations: 0.9948 MB / 469.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3558, allocations: 1.031 kB / 469.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.357, allocations: 0.6159 MB / 470.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007359/0.3578, allocations: 147.7 kB / 470.5 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.3688, allocations: 7.45 MB / 477.9 MB, free: 6.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.3692, allocations: 0.9812 MB / 478.9 MB, free: 6.098 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004332/0.3696, allocations: 89.56 kB / 479 MB, free: 6.074 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003766/0.37, allocations: 319.3 kB / 479.3 MB, free: 5.836 MB / 366.1 MB Notification: Performance of SimCode: time 1.353e-06/0.37, allocations: 0 / 479.3 MB, free: 5.836 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04802/0.418, allocations: 19.2 MB / 498.5 MB, free: 8.082 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.36, allocations: 8.062 kB / 498.5 MB, free: 8.074 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1e-08 --stepSize=1.9988e-12 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.803877333004493] Failed to read output from testmodel.py, exit status != 0: ['time', 'C1.v', 'C2.v', 'C3.v', 'C4.v', 'C5.v', 'Transistor1.Tr.C.v', 'Transistor1.ct.v', 'Transistor2.Tr.C.v', 'Transistor2.ct.v'] 11.505899832991417 11.530778629 11.406819631 Calling exit ...