Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008335/0.0008335, allocations: 93.7 kB / 17 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008885/0.0008889, allocations: 198 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002605, allocations: 11.98 kB / 306.8 MB, free: 1.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.14, allocations: 51.49 MB / 358.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003063/0.1431, allocations: 2.385 MB / 360.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.1444, allocations: 0.6586 MB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.1445, allocations: 4 kB / 361.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.1447, allocations: 31.77 kB / 361.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/0.1449, allocations: 75.38 kB / 361.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.1452, allocations: 59.94 kB / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003776/0.1456, allocations: 342.5 kB / 361.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.1458, allocations: 90.33 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.146, allocations: 119.5 kB / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.1462, allocations: 139.4 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.796e-05/0.1463, allocations: 20 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.506e-05/0.1463, allocations: 16 kB / 362.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.893e-05/0.1464, allocations: 63.75 kB / 362.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.323e-05/0.1465, allocations: 73.58 kB / 362.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003021/0.1468, allocations: 275.4 kB / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1468, allocations: 0 / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1468, allocations: 0 / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.1469, allocations: 0 / 362.6 MB, free: 9.648 MB / 302.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.001261/0.1481, allocations: 0.6185 MB / 363.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.1482, allocations: 12.03 kB / 363.3 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.427e-05/0.1483, allocations: 66.47 kB / 363.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.892e-05/0.1484, allocations: 31.62 kB / 363.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003572/0.1487, allocations: 271.4 kB / 363.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/0.1488, allocations: 16.56 kB / 363.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.1488, allocations: 31.95 kB / 363.7 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006955/0.1495, allocations: 311.3 kB / 364 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.1495, allocations: 0 / 364 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.1496, allocations: 12 kB / 364 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.1496, allocations: 7.938 kB / 364 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007145/0.1503, allocations: 277.6 kB / 364.3 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.1521, allocations: 1.101 MB / 365.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007139/0.1528, allocations: 242.6 kB / 365.6 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002902/0.1531, allocations: 108.8 kB / 365.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.1531, allocations: 0 / 365.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004937/0.1536, allocations: 181.8 kB / 365.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/0.1536, allocations: 0 / 365.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001902/0.1555, allocations: 0.5457 MB / 366.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/0.1556, allocations: 114.7 kB / 366.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/0.156, allocations: 286.5 kB / 366.8 MB, free: 5.141 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.36e-05/0.156, allocations: 33.7 kB / 366.9 MB, free: 5.102 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.1562, allocations: 187.6 kB / 367 MB, free: 4.914 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.895e-05/0.1562, allocations: 39.45 kB / 367.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.542e-05/0.1562, allocations: 4 kB / 367.1 MB, free: 4.871 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1564, allocations: 342.8 kB / 367.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003038/0.1567, allocations: 104.2 kB / 367.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003699/0.1571, allocations: 214.1 kB / 367.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.1574, allocations: 147.7 kB / 367.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1574, allocations: 0 / 367.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001101/0.1585, allocations: 451.7 kB / 368.3 MB, free: 3.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.961e-05/0.1586, allocations: 33.7 kB / 368.3 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.1586, allocations: 4 kB / 368.3 MB, free: 3.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000392/0.159, allocations: 84.81 kB / 368.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/0.1593, allocations: 47.97 kB / 368.5 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.1616, allocations: 1.597 MB / 370.1 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/0.1619, allocations: 67.7 kB / 370.1 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.162, allocations: 8 kB / 370.1 MB, free: 1.582 MB / 302.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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001712/0.1622, allocations: 149.2 kB / 370.3 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.593e-05/0.1622, allocations: 23.72 kB / 370.3 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.277e-05/0.1623, allocations: 33.7 kB / 370.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1623, allocations: 0 / 370.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.1623, allocations: 0 / 370.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.1623, allocations: 7.891 kB / 370.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003318/0.1626, allocations: 297.5 kB / 370.6 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1626, allocations: 0 / 370.6 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.1628, allocations: 27.97 kB / 370.7 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002299/0.163, allocations: 64.81 kB / 370.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.163, allocations: 7.984 kB / 370.7 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2704/0.4335, allocations: 1.57 MB / 372.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4335, allocations: 0.75 kB / 372.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001162/0.4347, allocations: 342.2 kB / 372.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.4348, allocations: 115.2 kB / 372.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.894e-05/0.4349, allocations: 1.688 kB / 372.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.4351, allocations: 40.28 kB / 372.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.4353, allocations: 21.69 kB / 372.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.4353, allocations: 3.547 kB / 372.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002721/0.4356, allocations: 207 kB / 373 MB, free: 18.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4356, allocations: 0 / 373 MB, free: 18.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004917/0.4361, allocations: 77.78 kB / 373.1 MB, free: 18.47 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001483/0.4375, allocations: 0.8777 MB / 374 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.4388, allocations: 432.9 kB / 374.4 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4388, allocations: 0 / 374.4 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005489/0.4394, allocations: 235.1 kB / 374.6 MB, free: 17.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003959/0.4398, allocations: 42.41 kB / 374.7 MB, free: 17.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004331/0.4441, allocations: 1.699 MB / 376.4 MB, free: 16.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.4444, allocations: 0.7515 MB / 377.1 MB, free: 16.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001428/0.4445, allocations: 23.3 kB / 377.2 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.4447, allocations: 75.28 kB / 377.2 MB, free: 16.21 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4447, allocations: 0.6562 kB / 377.2 MB, free: 16.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02417/0.4689, allocations: 5.986 MB / 383.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/0.4691, allocations: 225 kB / 383.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.081/2.55, allocations: 0 / 383.4 MB, free: 15.16 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat